HeaderEcho

org.http4s.server.middleware.HeaderEcho
object HeaderEcho

Attributes

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

Members list

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.

Value parameters

echoHeadersWhen

the function that selects which headers to echo on the response

http

Http to transform

Attributes

Source
HeaderEcho.scala