Class/Object

org.http4s

Headers

Related Docs: object Headers | package http4s

Permalink

final class Headers extends AnyVal

A collection of HTTP Headers

Linear Supertypes
AnyVal, Any
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

    Permalink
    Definition Classes
    Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    Any
  3. def ++(that: Headers): Headers

    Permalink

    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

    Permalink
    Definition Classes
    Any
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def collectFirst[B](f: PartialFunction[Header, B]): Option[B]

    Permalink
  7. def count(f: (Header) ⇒ Boolean): Int

    Permalink
  8. def drop(n: Int): Headers

    Permalink
  9. def exists(f: (Header) ⇒ Boolean): Boolean

    Permalink
  10. def filter(f: (Header) ⇒ Boolean): Headers

    Permalink
  11. def filterNot(f: (Header) ⇒ Boolean): Headers

    Permalink
  12. def find(f: (Header) ⇒ Boolean): Option[Header]

    Permalink
  13. def foldLeft[A](z: A)(f: (A, Header) ⇒ A): A

    Permalink
  14. def foldMap[B](f: (Header) ⇒ B)(implicit arg0: Monoid[B]): B

    Permalink
  15. def foldRight[A](z: Eval[A])(f: (Header, Eval[A]) ⇒ Eval[A]): Eval[A]

    Permalink
  16. def forall(f: (Header) ⇒ Boolean): Boolean

    Permalink
  17. def foreach(f: (Header) ⇒ Unit): Unit

    Permalink
  18. def get(key: CaseInsensitiveString): Option[Header]

    Permalink

    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]

    Permalink

    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.http4s.util.CaseInsensitiveString)

  20. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  21. def isEmpty: Boolean

    Permalink
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def iterator: Iterator[Header]

    Permalink
  24. def nonEmpty: Boolean

    Permalink
  25. def put(in: Header*): Headers

    Permalink

    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: (CaseInsensitiveString) ⇒ Boolean = Headers.SensitiveHeaders.contains): Headers

    Permalink
  27. def removePayloadHeaders: Headers

    Permalink

    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

    Permalink
  29. def toList: List[Header]

    Permalink
  30. def toString(): String

    Permalink
    Definition Classes
    Headers → Any

Deprecated Value Members

  1. def get(key: Set-Cookie.type): Option[Set-Cookie]

    Permalink
    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