final class Headers extends AnyVal
- Alphabetic
- By Inheritance
- Headers
- AnyVal
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
- def +(other: String): String
-
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
- def ->[B](y: B): (Headers, B)
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- def collectFirst[B](f: PartialFunction[Header, B]): Option[B]
- def count(f: (Header) ⇒ Boolean): Int
- def drop(n: Int): Headers
- def ensuring(cond: (Headers) ⇒ Boolean, msg: ⇒ Any): Headers
- def ensuring(cond: (Headers) ⇒ Boolean): Headers
- def ensuring(cond: Boolean, msg: ⇒ Any): Headers
- def ensuring(cond: Boolean): Headers
- def exists(f: (Header) ⇒ Boolean): Boolean
- def filter(f: (Header) ⇒ Boolean): Headers
- def filterNot(f: (Header) ⇒ Boolean): Headers
- def find(f: (Header) ⇒ Boolean): Option[Header]
- def foldLeft[A](z: A)(f: (A, Header) ⇒ A): A
- def foldMap[B](f: (Header) ⇒ B)(implicit arg0: Monoid[B]): B
- def foldRight[A](z: Eval[A])(f: (Header, Eval[A]) ⇒ Eval[A]): Eval[A]
- def forall(f: (Header) ⇒ Boolean): Boolean
- def foreach(f: (Header) ⇒ Unit): Unit
- def formatted(fmtstr: String): String
-
def
get(key: CaseInsensitiveString): 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
-
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.http4s.util.CaseInsensitiveString)
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- def isEmpty: Boolean
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iterator: Iterator[Header]
- def nonEmpty: Boolean
-
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.
- def redactSensitive(redactWhen: (CaseInsensitiveString) ⇒ Boolean = Headers.SensitiveHeaders.contains): Headers
-
def
removePayloadHeaders: Headers
Removes the
Content-Length
,Content-Range
,Trailer
, andTransfer-Encoding
headers.Removes the
Content-Length
,Content-Range
,Trailer
, andTransfer-Encoding
headers.https://tools.ietf.org/html/rfc7231#section-3.3
- def size: Int
- def toList: List[Header]
-
def
toString(): String
- Definition Classes
- Headers → Any
- def →[B](y: B): (Headers, B)
Deprecated Value Members
-
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.