HeaderEcho

object HeaderEcho
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_], G[_]](echoHeadersWhen: CIString => Boolean)(http: Http[F, G])(implicit evidence$1: Functor[F]): 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 Params
echoHeadersWhen

the function that selects which headers to echo on the response

http

Http to transform

def httpApp[F[_]](echoHeadersWhen: CIString => Boolean)(httpApp: HttpApp[F])(implicit evidence$3: Functor[F]): HttpApp[F]
def httpRoutes[F[_]](echoHeadersWhen: CIString => Boolean)(httpRoutes: HttpRoutes[F])(implicit evidence$2: Functor[F]): HttpRoutes[F]