Packages

final class Headers extends AnyVal

A collection of HTTP Headers

Source
Headers.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Headers
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def ++(that: Headers): Headers

    Concatenate the two collections If the resulting collection is of Headers type, duplicate Singleton headers will be removed from this Headers collection.

    Concatenate the two collections If the resulting collection is of Headers type, duplicate Singleton headers will be removed from this Headers collection.

    that

    collection to append

  4. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def collectFirst[B](f: PartialFunction[Header, B]): Option[B]
  7. def count(f: (Header) ⇒ Boolean): Int
  8. def drop(n: Int): Headers
  9. def exists(f: (Header) ⇒ Boolean): Boolean
  10. def filter(f: (Header) ⇒ Boolean): Headers
  11. def filterNot(f: (Header) ⇒ Boolean): Headers
  12. def find(f: (Header) ⇒ Boolean): Option[Header]
  13. def foldLeft[A](z: A)(f: (A, Header) ⇒ A): A
  14. def foldMap[B](f: (Header) ⇒ B)(implicit arg0: Monoid[B]): B
  15. def foldRight[A](z: Eval[A])(f: (Header, Eval[A]) ⇒ Eval[A]): Eval[A]
  16. def forall(f: (Header) ⇒ Boolean): Boolean
  17. def foreach(f: (Header) ⇒ Unit): Unit
  18. def get(key: CIString): Option[Header]

    Attempt to get a org.http4s.Header from this collection of headers

    Attempt to get a org.http4s.Header from this collection of headers

    key

    name of the header to find

    returns

    a scala.Option possibly containing the resulting org.http4s.Header

  19. def get(key: Extractable): Option[HeaderKey.Extractable.HeaderT]

    Attempt to get a org.http4s.Header of type key.HeaderT from this collection

    Attempt to get a org.http4s.Header of type key.HeaderT from this collection

    key

    HeaderKey.Extractable that can identify the required header

    returns

    a scala.Option possibly containing the resulting header of type key.HeaderT

    See also

    Header object and get(org.typelevel.ci.CIString)

  20. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  21. def isEmpty: Boolean
  22. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  23. def iterator: Iterator[Header]
  24. def nonEmpty: Boolean
  25. def put(in: Header*): Headers

    Make a new collection adding the specified headers, replacing existing headers of singleton type The passed headers are assumed to contain no duplicate Singleton headers.

    Make a new collection adding the specified headers, replacing existing headers of singleton type The passed headers are assumed to contain no duplicate Singleton headers.

    in

    multiple Header to append to the new collection

    returns

    a new Headers containing the sum of the initial and input headers

  26. def redactSensitive(redactWhen: (CIString) ⇒ Boolean = Headers.SensitiveHeaders.contains): Headers
  27. def removePayloadHeaders: Headers

    Removes the Content-Length, Content-Range, Trailer, and Transfer-Encoding headers.

    Removes the Content-Length, Content-Range, Trailer, and Transfer-Encoding headers.

    https://tools.ietf.org/html/rfc7231#section-3.3

  28. def size: Int
  29. def toList: List[Header]
  30. def toString(): String
    Definition Classes
    Headers → Any

Deprecated Value Members

  1. def get(key: Set-Cookie.type): Option[Set-Cookie]
    Annotations
    @deprecated
    Deprecated

    (Since version 0.16.0-RC1) Use response.cookies instead. Set-Cookie is unique among HTTP headers in that it can be repeated but can't be joined by a ','. This will return only the first Set-Cookie header. response.cookies will return the complete list.

Inherited from AnyVal

Inherited from Any

Ungrouped