HeaderEcho

object HeaderEcho
class Object
trait Matchable
class Any

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

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