HeaderEcho

org.http4s.server.middleware.HeaderEcho$
object HeaderEcho

Attributes

Source:
HeaderEcho.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Concise view

Value members

Concrete methods

def apply[F[_] : Functor, G[_]](echoHeadersWhen: CIString => Boolean)(http: Http[F, G]): Http[F, G]

Simple server middleware that adds selected headers present on the request to the response.

Simple server middleware that adds selected headers present on the request to the response.

Attributes

echoHeadersWhen

the function that selects which headers to echo on the response

http

Http to transform

Source:
HeaderEcho.scala
def httpApp[F[_] : Functor](echoHeadersWhen: CIString => Boolean)(httpApp: HttpApp[F]): HttpApp[F]

Attributes

Source:
HeaderEcho.scala
def httpRoutes[F[_] : Functor](echoHeadersWhen: CIString => Boolean)(httpRoutes: HttpRoutes[F]): HttpRoutes[F]

Attributes

Source:
HeaderEcho.scala