Packages

final class HttpCookie extends javadsl.model.headers.HttpCookie with ToStringRenderable with Product with Serializable with Equals

for a full definition of the http cookie header fields, see http://tools.ietf.org/html/rfc6265

Source
HttpCookie.scala
Linear Supertypes
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpCookie
  2. Serializable
  3. Product
  4. Equals
  5. ToStringRenderable
  6. Renderable
  7. HttpCookie
  8. AnyRef
  9. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new HttpCookie(name: String, value: String, expires: Option[DateTime] = None, maxAge: Option[Long] = None, domain: Option[String] = None, path: Option[String] = None, secure: Boolean = false, httpOnly: Boolean = false, extension: Option[String] = None)
    Annotations
    @deprecated
    Deprecated

    (Since version Akka HTTP 10.2.0) Please use HttpCookie(name, value).withXxx()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String
    Implicit
    This member is added by an implicit conversion from HttpCookie toany2stringadd[HttpCookie] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (HttpCookie, B)
    Implicit
    This member is added by an implicit conversion from HttpCookie toArrowAssoc[HttpCookie] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def canEqual(that: Any): Boolean
    Definition Classes
    HttpCookie → Equals
  8. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  9. val domain: Option[String]
  10. def ensuring(cond: (HttpCookie) => Boolean, msg: => Any): HttpCookie
    Implicit
    This member is added by an implicit conversion from HttpCookie toEnsuring[HttpCookie] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: (HttpCookie) => Boolean): HttpCookie
    Implicit
    This member is added by an implicit conversion from HttpCookie toEnsuring[HttpCookie] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. def ensuring(cond: Boolean, msg: => Any): HttpCookie
    Implicit
    This member is added by an implicit conversion from HttpCookie toEnsuring[HttpCookie] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  13. def ensuring(cond: Boolean): HttpCookie
    Implicit
    This member is added by an implicit conversion from HttpCookie toEnsuring[HttpCookie] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(obj: Any): Boolean
    Definition Classes
    HttpCookie → Equals → AnyRef → Any
  16. val expires: Option[DateTime]
  17. val extension: Option[String]
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def getDomain(): Optional[String]

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  21. def getExpires(): Optional[javadsl.model.DateTime]

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  22. def getExtension(): Optional[String]

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  23. def getMaxAge(): OptionalLong

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  24. def getPath(): Optional[String]

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  25. def getSameSite(): Optional[javadsl.model.headers.SameSite]

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. val httpOnly: Boolean
    Definition Classes
    HttpCookieHttpCookie
  28. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  29. val maxAge: Option[Long]
  30. val name: String
    Definition Classes
    HttpCookieHttpCookie
  31. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  32. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  34. def pair(): HttpCookiePair

    Returns the name/value pair for this cookie, to be used in Cookie headers.

    Returns the name/value pair for this cookie, to be used in Cookie headers.

    Definition Classes
    HttpCookieHttpCookie
  35. val path: Option[String]
  36. def productArity: Int
    Definition Classes
    HttpCookie → Product
  37. def productElement(n: Int): Any
    Definition Classes
    HttpCookie → Product
  38. def productElementName(n: Int): String
    Definition Classes
    Product
  39. def productElementNames: Iterator[String]
    Definition Classes
    Product
  40. def productIterator: Iterator[Any]
    Definition Classes
    Product
  41. def productPrefix: String
    Definition Classes
    Product
  42. def render[R <: Rendering](r: R): r.type
    Definition Classes
    HttpCookie → Renderable
  43. val sameSite: Option[SameSite]
  44. val secure: Boolean
    Definition Classes
    HttpCookieHttpCookie
  45. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  46. def toString(): String
    Definition Classes
    ToStringRenderable → AnyRef → Any
  47. val value: String
    Definition Classes
    HttpCookieHttpCookie
  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  51. def withDomain(domain: String): HttpCookie

    Returns a copy of this HttpCookie instance with the given domain set.

    Returns a copy of this HttpCookie instance with the given domain set.

    Definition Classes
    HttpCookieHttpCookie
  52. def withExpires(dateTime: javadsl.model.DateTime): HttpCookie

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  53. def withExpires(dateTime: DateTime): HttpCookie

    Scala API

  54. def withExtension(extension: String): HttpCookie

    Returns a copy of this HttpCookie instance with the given extension set.

    Returns a copy of this HttpCookie instance with the given extension set.

    Definition Classes
    HttpCookieHttpCookie
  55. def withHttpOnly(httpOnly: Boolean): HttpCookie

    Returns a copy of this HttpCookie instance with the given http-only flag set.

    Returns a copy of this HttpCookie instance with the given http-only flag set.

    Definition Classes
    HttpCookieHttpCookie
  56. def withMaxAge(maxAge: Long): HttpCookie

    Returns a copy of this HttpCookie instance with the given max age set.

    Returns a copy of this HttpCookie instance with the given max age set.

    Definition Classes
    HttpCookieHttpCookie
  57. def withName(name: String): HttpCookie
  58. def withPath(path: String): HttpCookie

    Returns a copy of this HttpCookie instance with the given path set.

    Returns a copy of this HttpCookie instance with the given path set.

    Definition Classes
    HttpCookieHttpCookie
  59. def withSameSite(sameSite: Optional[javadsl.model.headers.SameSite]): HttpCookie

    Returns a copy of this HttpCookie instance with the given Optional SameSite set.

    Returns a copy of this HttpCookie instance with the given Optional SameSite set.

    Definition Classes
    HttpCookieHttpCookie
  60. def withSameSite(sameSite: javadsl.model.headers.SameSite): HttpCookie

    Java API

    Java API

    Definition Classes
    HttpCookieHttpCookie
  61. def withSameSite(sameSite: Option[SameSite]): HttpCookie
  62. def withSameSite(sameSite: SameSite): HttpCookie

    Scala API

  63. def withSecure(secure: Boolean): HttpCookie

    Returns a copy of this HttpCookie instance with the given secure flag set.

    Returns a copy of this HttpCookie instance with the given secure flag set.

    Definition Classes
    HttpCookieHttpCookie
  64. def withValue(value: String): HttpCookie

Deprecated Value Members

  1. def formatted(fmtstr: String): String
    Implicit
    This member is added by an implicit conversion from HttpCookie toStringFormat[HttpCookie] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 2.12.16) Use formatString.format(value) instead of value.formatted(formatString), or use the f"" string interpolator. In Java 15 and later, formatted resolves to the new method in String which has reversed parameters.

  2. def [B](y: B): (HttpCookie, B)
    Implicit
    This member is added by an implicit conversion from HttpCookie toArrowAssoc[HttpCookie] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.13.0) Use -> instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ToStringRenderable

Inherited from Renderable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd fromHttpCookie to any2stringadd[HttpCookie]

Inherited by implicit conversion StringFormat fromHttpCookie to StringFormat[HttpCookie]

Inherited by implicit conversion Ensuring fromHttpCookie to Ensuring[HttpCookie]

Inherited by implicit conversion ArrowAssoc fromHttpCookie to ArrowAssoc[HttpCookie]

Ungrouped