Interface CookieDirectives
- All Known Subinterfaces:
- Directives
- All Known Implementing Classes:
- CookieDirectives$,- Directives$,- HttpApp
public interface CookieDirectives
- 
Method SummaryModifier and TypeMethodDescriptionDirective<scala.Tuple1<HttpCookiePair>>Extracts theHttpCookiePairwith the given name.Directive<scala.runtime.BoxedUnit>deleteCookie(String name, String domain, String path) Adds a {@link Set-Cookie} response header expiring the cookie with the given properties.Directive<scala.runtime.BoxedUnit>deleteCookie(HttpCookie first, scala.collection.immutable.Seq<HttpCookie> more) Adds a {@link Set-Cookie} response header expiring the given cookies.scala.Function1<HttpHeader,scala.Option<HttpCookiePair>> findCookie(String name) Directive<scala.Tuple1<scala.Option<HttpCookiePair>>>optionalCookie(String name) Extracts theHttpCookiePairwith the given name as anOption[HttpCookiePair].Directive<scala.runtime.BoxedUnit>setCookie(HttpCookie first, scala.collection.immutable.Seq<HttpCookie> more) Adds a {@link Set-Cookie} response header with the given cookies.
- 
Method Details- 
cookieExtracts theHttpCookiePairwith the given name. If the cookie is not present the request is rejected with a respectiveMissingCookieRejection.- Parameters:
- name- (undocumented)
- Returns:
- (undocumented)
 
- 
optionalCookieExtracts theHttpCookiePairwith the given name as anOption[HttpCookiePair]. If the cookie is not present a value ofNoneis extracted.- Parameters:
- name- (undocumented)
- Returns:
- (undocumented)
 
- 
findCookie
- 
setCookieDirective<scala.runtime.BoxedUnit> setCookie(HttpCookie first, scala.collection.immutable.Seq<HttpCookie> more) Adds a {@link Set-Cookie} response header with the given cookies.- Parameters:
- first- (undocumented)
- more- (undocumented)
- Returns:
- (undocumented)
 
- 
deleteCookieDirective<scala.runtime.BoxedUnit> deleteCookie(HttpCookie first, scala.collection.immutable.Seq<HttpCookie> more) Adds a {@link Set-Cookie} response header expiring the given cookies.- Parameters:
- first- (undocumented)
- more- (undocumented)
- Returns:
- (undocumented)
 
- 
deleteCookieAdds a {@link Set-Cookie} response header expiring the cookie with the given properties.- Parameters:
- name- (undocumented)
- domain- (undocumented)
- path- (undocumented)
- Returns:
- (undocumented)
 
 
-