CookieDirectives

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

Attributes

Companion
trait
Source
CookieDirectives.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Grouped members

cookie

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

Inherited from:
CookieDirectives
Source
CookieDirectives.scala

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

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

Attributes

Inherited from:
CookieDirectives
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

Inherited from:
CookieDirectives
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

Inherited from:
CookieDirectives
Source
CookieDirectives.scala