CookieDirectives

org.apache.pekko.http.scaladsl.server.directives.CookieDirectives
See theCookieDirectives companion object

Attributes

Companion
object
Source
CookieDirectives.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Directives
object Directives
class HttpApp

Members list

Grouped members

Cookie directives

Adds a Set-Cookie response header expiring the given cookies.

Adds a Set-Cookie response header expiring the given cookies.

Attributes

Source
CookieDirectives.scala
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.

Attributes

Source
CookieDirectives.scala

Extracts the HttpCookiePair with the given name as an Option[HttpCookiePair]. If the cookie is not present a value of None is extracted.

Extracts the HttpCookiePair with the given name as an Option[HttpCookiePair]. If the cookie is not present a value of None is extracted.

Attributes

Source
CookieDirectives.scala
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.

Attributes

Source
CookieDirectives.scala