final class Headers extends Iterable[Header] with IterableLike[Header, Headers]
- Alphabetic
- By Inheritance
- Headers
- Iterable
- Iterable
- IterableLike
- Equals
- GenIterable
- GenIterableLike
- Traversable
- Immutable
- Traversable
- GenTraversable
- GenericTraversableTemplate
- TraversableLike
- GenTraversableLike
- Parallelizable
- TraversableOnce
- GenTraversableOnce
- FilterMonadic
- HasNewBuilder
- AnyRef
- Any
- by CollectionsHaveToParArray
- by MonadOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- by alternateImplicit
- Hide All
- Show All
- Public
- All
Type Members
-
type
Self = Headers
- Attributes
- protected[this]
- Definition Classes
- TraversableLike
-
class
WithFilter extends FilterMonadic[A, Repr]
- Definition Classes
- TraversableLike
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
-
def
++[B >: Header, That](that: GenTraversableOnce[B])(implicit bf: CanBuildFrom[Headers, B, That]): That
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.
- B
type contained in collection
that
- That
resulting type of the new collection
- that
collection to append
- Definition Classes
- Headers → TraversableLike → GenTraversableLike
-
def
++:[B >: Header, That](that: Traversable[B])(implicit bf: CanBuildFrom[Headers, B, That]): That
- Definition Classes
- TraversableLike
-
def
++:[B >: Header, That](that: TraversableOnce[B])(implicit bf: CanBuildFrom[Headers, B, That]): That
- Definition Classes
- TraversableLike
- def ->[B](y: B): (Headers, B)
-
def
/:[B](z: B)(op: (B, Header) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
:\[B](z: B)(op: (Header, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
addString(b: StringBuilder): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, sep: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
addString(b: StringBuilder, start: String, sep: String, end: String): StringBuilder
- Definition Classes
- TraversableOnce
-
def
aggregate[B](z: ⇒ B)(seqop: (B, Header) ⇒ B, combop: (B, B) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
canEqual(that: Any): Boolean
- Definition Classes
- IterableLike → Equals
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
collect[B, That](pf: PartialFunction[Header, B])(implicit bf: CanBuildFrom[Headers, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
collectFirst[B](pf: PartialFunction[Header, B]): Option[B]
- Definition Classes
- TraversableOnce
-
def
companion: GenericCompanion[Iterable]
- Definition Classes
- Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → GenericTraversableTemplate
-
def
copyToArray[B >: Header](xs: Array[B], start: Int, len: Int): Unit
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: Header](xs: Array[B]): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToArray[B >: Header](xs: Array[B], start: Int): Unit
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
copyToBuffer[B >: Header](dest: Buffer[B]): Unit
- Definition Classes
- TraversableOnce
-
def
count(p: (Header) ⇒ Boolean): Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
drop(n: Int): Headers
- Definition Classes
- Headers → IterableLike → TraversableLike → GenTraversableLike
-
def
dropRight(n: Int): Headers
- Definition Classes
- IterableLike
-
def
dropWhile(p: (Header) ⇒ Boolean): Headers
- Definition Classes
- TraversableLike → GenTraversableLike
- 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
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(that: Any): Boolean
- Definition Classes
- Headers → Equals → AnyRef → Any
-
def
exists(p: (Header) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
filter(p: (Header) ⇒ Boolean): Headers
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
filterNot(p: (Header) ⇒ Boolean): Headers
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
find(p: (Header) ⇒ Boolean): Option[Header]
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
flatMap[B, That](f: (Header) ⇒ GenTraversableOnce[B])(implicit bf: CanBuildFrom[Headers, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
flatten[B](implicit asTraversable: (Header) ⇒ GenTraversableOnce[B]): Iterable[B]
- Definition Classes
- GenericTraversableTemplate
-
def
fold[A1 >: Header](z: A1)(op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldLeft[B](z: B)(op: (B, Header) ⇒ B): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
foldRight[B](z: B)(op: (Header, B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
forall(p: (Header) ⇒ Boolean): Boolean
- Definition Classes
- IterableLike → TraversableLike → TraversableOnce → GenTraversableOnce
-
def
foreach[B](f: (Header) ⇒ B): Unit
- Definition Classes
- Headers → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike → TraversableOnce → GenTraversableOnce → FilterMonadic
- def formatted(fmtstr: String): String
-
def
genericBuilder[B]: Builder[B, Iterable[B]]
- Definition Classes
- GenericTraversableTemplate
-
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)
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
groupBy[K](f: (Header) ⇒ K): Map[K, Headers]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
grouped(size: Int): Iterator[Headers]
- Definition Classes
- IterableLike
-
def
hasDefiniteSize: Boolean
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
hashCode(): Int
- Definition Classes
- Headers → AnyRef → Any
-
def
head: Header
- Definition Classes
- Headers → IterableLike → GenericTraversableTemplate → TraversableLike → GenTraversableLike
-
def
headOption: Option[Header]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
init: Headers
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
inits: Iterator[Headers]
- Definition Classes
- TraversableLike
-
def
isEmpty: Boolean
- Definition Classes
- Headers → IterableLike → GenericTraversableTemplate → TraversableLike → TraversableOnce → GenTraversableOnce
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
isTraversableAgain: Boolean
- Definition Classes
- TraversableLike → GenTraversableLike → GenTraversableOnce
-
def
iterator: Iterator[Header]
- Definition Classes
- Headers → IterableLike → GenIterableLike
-
def
last: Header
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
lastOption: Option[Header]
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
map[B, That](f: (Header) ⇒ B)(implicit bf: CanBuildFrom[Headers, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike → FilterMonadic
-
def
max[B >: Header](implicit cmp: Ordering[B]): Header
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
maxBy[B](f: (Header) ⇒ B)(implicit cmp: Ordering[B]): Header
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
min[B >: Header](implicit cmp: Ordering[B]): Header
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
minBy[B](f: (Header) ⇒ B)(implicit cmp: Ordering[B]): Header
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString: String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(sep: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
mkString(start: String, sep: String, end: String): String
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
newBuilder: Builder[Header, Headers]
- Attributes
- protected
- Definition Classes
- Headers → GenericTraversableTemplate → TraversableLike → HasNewBuilder
-
def
nonEmpty: Boolean
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
par: ParIterable[Header]
- Definition Classes
- Parallelizable
-
def
parCombiner: Combiner[Header, ParIterable[Header]]
- Attributes
- protected[this]
- Definition Classes
- Iterable → TraversableLike → Parallelizable
-
def
partition(p: (Header) ⇒ Boolean): (Headers, Headers)
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
product[B >: Header](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
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
reduce[A1 >: Header](op: (A1, A1) ⇒ A1): A1
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceLeft[B >: Header](op: (B, Header) ⇒ B): B
- Definition Classes
- TraversableOnce
-
def
reduceLeftOption[B >: Header](op: (B, Header) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceOption[A1 >: Header](op: (A1, A1) ⇒ A1): Option[A1]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
reduceRight[B >: Header](op: (Header, B) ⇒ B): B
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
reduceRightOption[B >: Header](op: (Header, B) ⇒ B): Option[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
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
repr: Headers
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
reversed: List[Header]
- Attributes
- protected[this]
- Definition Classes
- TraversableOnce
-
def
sameElements[B >: Header](that: GenIterable[B]): Boolean
- Definition Classes
- IterableLike → GenIterableLike
-
def
scan[B >: Header, That](z: B)(op: (B, B) ⇒ B)(implicit cbf: CanBuildFrom[Headers, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanLeft[B, That](z: B)(op: (B, Header) ⇒ B)(implicit bf: CanBuildFrom[Headers, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
scanRight[B, That](z: B)(op: (Header, B) ⇒ B)(implicit bf: CanBuildFrom[Headers, B, That]): That
- Definition Classes
- TraversableLike → GenTraversableLike
- Annotations
- @migration
- Migration
(Changed in version 2.9.0) The behavior of
scanRight
has changed. The previous behavior can be reproduced with scanRight.reverse.
-
def
seq: Iterable[Header]
- Definition Classes
- Iterable → Iterable → GenIterable → Traversable → Traversable → GenTraversable → Parallelizable → TraversableOnce → GenTraversableOnce
-
def
size: Int
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
sizeHintIfCheap: Int
- Attributes
- protected[scala.collection]
- Definition Classes
- GenTraversableOnce
-
def
slice(from: Int, until: Int): Headers
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
sliding(size: Int, step: Int): Iterator[Headers]
- Definition Classes
- IterableLike
-
def
sliding(size: Int): Iterator[Headers]
- Definition Classes
- IterableLike
-
def
span(p: (Header) ⇒ Boolean): (Headers, Headers)
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
splitAt(n: Int): (Headers, Headers)
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
stringPrefix: String
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
sum[B >: Header](implicit num: Numeric[B]): B
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
tail: Headers
- Definition Classes
- TraversableLike → GenTraversableLike
-
def
tails: Iterator[Headers]
- Definition Classes
- TraversableLike
-
def
take(n: Int): Headers
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
takeRight(n: Int): Headers
- Definition Classes
- IterableLike
-
def
takeWhile(p: (Header) ⇒ Boolean): Headers
- Definition Classes
- IterableLike → TraversableLike → GenTraversableLike
-
def
thisCollection: Iterable[Header]
- Attributes
- protected[this]
- Definition Classes
- IterableLike → TraversableLike
-
def
to[Col[_]](implicit cbf: CanBuildFrom[Nothing, Header, Col[Header]]): Col[Header]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
-
def
toArray[B >: Header](implicit arg0: ClassTag[B]): Array[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toBuffer[B >: Header]: Buffer[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toCollection(repr: Headers): Iterable[Header]
- Attributes
- protected[this]
- Definition Classes
- IterableLike → TraversableLike
-
def
toIndexedSeq: IndexedSeq[Header]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toIterable: Iterable[Header]
- Definition Classes
- IterableLike → TraversableOnce → GenTraversableOnce
-
def
toIterator: Iterator[Header]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toList: List[Header]
- Definition Classes
- Headers → TraversableOnce → GenTraversableOnce
-
def
toMap[T, U](implicit ev: <:<[Header, (T, U)]): Map[T, U]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toParArray: ParArray[T]
- Implicit
- This member is added by an implicit conversion from Headers to CollectionsHaveToParArray[Headers, T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (Headers) ⇒ GenTraversableOnce[T] is in scope.
- Definition Classes
- CollectionsHaveToParArray
-
def
toSeq: Seq[Header]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toSet[B >: Header]: Set[B]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
toStream: Stream[Header]
- Definition Classes
- IterableLike → TraversableLike → GenTraversableOnce
-
def
toString(): String
- Definition Classes
- TraversableLike → Any
-
def
toTraversable: Traversable[Header]
- Definition Classes
- TraversableLike → TraversableOnce → GenTraversableOnce
- Annotations
- @deprecatedOverriding( ... , "2.11.0" )
-
def
toVector: Vector[Header]
- Definition Classes
- TraversableOnce → GenTraversableOnce
-
def
transpose[B](implicit asTraversable: (Header) ⇒ GenTraversableOnce[B]): Iterable[Iterable[B]]
- Definition Classes
- GenericTraversableTemplate
- Annotations
- @migration
- Migration
(Changed in version 2.9.0)
transpose
throws anIllegalArgumentException
if collections are not uniformly sized.
-
def
unzip[A1, A2](implicit asPair: (Header) ⇒ (A1, A2)): (Iterable[A1], Iterable[A2])
- Definition Classes
- GenericTraversableTemplate
-
def
unzip3[A1, A2, A3](implicit asTriple: (Header) ⇒ (A1, A2, A3)): (Iterable[A1], Iterable[A2], Iterable[A3])
- Definition Classes
- GenericTraversableTemplate
-
def
view(from: Int, until: Int): IterableView[Header, Headers]
- Definition Classes
- IterableLike → TraversableLike
-
def
view: IterableView[Header, Headers]
- Definition Classes
- IterableLike → TraversableLike
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
def
withFilter(p: (Header) ⇒ Boolean): FilterMonadic[Header, Headers]
- Definition Classes
- TraversableLike → FilterMonadic
-
def
zip[A1 >: Header, B, That](that: GenIterable[B])(implicit bf: CanBuildFrom[Headers, (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipAll[B, A1 >: Header, That](that: GenIterable[B], thisElem: A1, thatElem: B)(implicit bf: CanBuildFrom[Headers, (A1, B), That]): That
- Definition Classes
- IterableLike → GenIterableLike
-
def
zipWithIndex[A1 >: Header, That](implicit bf: CanBuildFrom[Headers, (A1, Int), That]): That
- Definition Classes
- IterableLike → GenIterableLike
- def →[B](y: B): (Headers, B)
Shadowed Implicit Value Members
-
def
filter(p: (Header) ⇒ Boolean): TraversableOnce[Header]
- Implicit
- This member is added by an implicit conversion from Headers to MonadOps[Header] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(headers: MonadOps[Header]).filter(p)
- Definition Classes
- MonadOps
-
def
flatMap[B](f: (Header) ⇒ GenTraversableOnce[B]): TraversableOnce[B]
- Implicit
- This member is added by an implicit conversion from Headers to MonadOps[Header] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(headers: MonadOps[Header]).flatMap(f)
- Definition Classes
- MonadOps
-
def
map[B](f: (Header) ⇒ B): TraversableOnce[B]
- Implicit
- This member is added by an implicit conversion from Headers to MonadOps[Header] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(headers: MonadOps[Header]).map(f)
- Definition Classes
- MonadOps
-
def
withFilter(p: (Header) ⇒ Boolean): Iterator[Header]
- Implicit
- This member is added by an implicit conversion from Headers to MonadOps[Header] performed by method MonadOps in scala.collection.TraversableOnce.
- Shadowing
- This implicitly inherited member is shadowed by one or more members in this class.
To access this member you can use a type ascription:(headers: MonadOps[Header]).withFilter(p)
- Definition Classes
- MonadOps
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.