object CookieDirectives extends CookieDirectives
- Source
- CookieDirectives.scala
- Grouped
- Alphabetic
- By Inheritance
- CookieDirectives
- CookieDirectives
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Cookie directives
- def cookie(name: String): Directive1[HttpCookiePair]
Extracts the HttpCookiePair with the given name.
Extracts the HttpCookiePair with the given name. If the cookie is not present the request is rejected with a respective MissingCookieRejection.
- Definition Classes
- CookieDirectives
- def deleteCookie(name: String, domain: String = "", path: String = ""): Directive0
Adds a Set-Cookie response header expiring the cookie with the given properties.
Adds a Set-Cookie response header expiring the cookie with the given properties.
- Definition Classes
- CookieDirectives
- def deleteCookie(first: HttpCookie, more: HttpCookie*): Directive0
Adds a Set-Cookie response header expiring the given cookies.
Adds a Set-Cookie response header expiring the given cookies.
- Definition Classes
- CookieDirectives
- def optionalCookie(name: String): Directive1[Option[HttpCookiePair]]
Extracts the HttpCookiePair with the given name as an
Option[HttpCookiePair]
.Extracts the HttpCookiePair with the given name as an
Option[HttpCookiePair]
. If the cookie is not present a value ofNone
is extracted.- Definition Classes
- CookieDirectives
- def setCookie(first: HttpCookie, more: HttpCookie*): Directive0
Adds a Set-Cookie response header with the given cookies.
Adds a Set-Cookie response header with the given cookies.
- Definition Classes
- CookieDirectives