org.http4s.headers.Transfer-Encoding
See theTransfer-Encoding companion object
Members list
Keep transfer codings matching the predicate. If no values remain, return none
Keep transfer codings matching the predicate. If no values remain, return none
scala> import org.http4s._
scala> val te = `Transfer-Encoding`(TransferCoding.chunked, TransferCoding.gzip)
scala> te.filter(_ != TransferCoding.chunked)
res0: Option[`Transfer-Encoding`] = Some(Transfer-Encoding(NonEmptyList(TransferCoding(gzip))))
scala> te.filter(_ => false)
res0: Option[`Transfer-Encoding`] = None
Attributes
-
Source
-
Transfer-Encoding.scala