public interface CookieDirectives
Modifier and Type | Method and Description |
---|---|
Directive<scala.Tuple1<HttpCookiePair>> |
cookie(java.lang.String name)
Extracts the
HttpCookiePair with the given name. |
Directive<scala.runtime.BoxedUnit> |
deleteCookie(HttpCookie first,
scala.collection.immutable.Seq<HttpCookie> more)
Adds a
Set-Cookie response header expiring the given cookies. |
Directive<scala.runtime.BoxedUnit> |
deleteCookie(java.lang.String name,
java.lang.String domain,
java.lang.String path)
Adds a
Set-Cookie response header expiring the cookie with the given properties. |
scala.Function1<HttpHeader,scala.Option<HttpCookiePair>> |
findCookie(java.lang.String name) |
Directive<scala.Tuple1<scala.Option<HttpCookiePair>>> |
optionalCookie(java.lang.String name)
Extracts the
HttpCookiePair with the given name as an Option[HttpCookiePair] . |
Directive<scala.runtime.BoxedUnit> |
setCookie(HttpCookie first,
scala.collection.immutable.Seq<HttpCookie> more)
Adds a
Set-Cookie response header with the given cookies. |
Directive<scala.Tuple1<HttpCookiePair>> cookie(java.lang.String name)
HttpCookiePair
with the given name. If the cookie is not present the
request is rejected with a respective MissingCookieRejection
.
name
- (undocumented)Directive<scala.Tuple1<scala.Option<HttpCookiePair>>> optionalCookie(java.lang.String name)
HttpCookiePair
with the given name as an Option[HttpCookiePair]
.
If the cookie is not present a value of None
is extracted.
name
- (undocumented)scala.Function1<HttpHeader,scala.Option<HttpCookiePair>> findCookie(java.lang.String name)
Directive<scala.runtime.BoxedUnit> setCookie(HttpCookie first, scala.collection.immutable.Seq<HttpCookie> more)
Set-Cookie
response header with the given cookies.
first
- (undocumented)more
- (undocumented)Directive<scala.runtime.BoxedUnit> deleteCookie(HttpCookie first, scala.collection.immutable.Seq<HttpCookie> more)
Set-Cookie
response header expiring the given cookies.
first
- (undocumented)more
- (undocumented)Directive<scala.runtime.BoxedUnit> deleteCookie(java.lang.String name, java.lang.String domain, java.lang.String path)
Set-Cookie
response header expiring the cookie with the given properties.
name
- (undocumented)domain
- (undocumented)path
- (undocumented)