ContextMiddleware

org.http4s.server.ContextMiddleware

Attributes

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

Members list

Value members

Concrete methods

def apply[F[_] : Monad, T](getContext: Kleisli[[_] =>> OptionT[F, _$2], Request[F], T]): F => T

Attributes

Source
ContextMiddleware.scala
def const[F[_] : Monad, T](t: T): F => T

Useful for Testing, Construct a Middleware from a single value T to use as the context

Useful for Testing, Construct a Middleware from a single value T to use as the context

Value parameters

t

The value to use as the context

Attributes

Returns

A ContextMiddleware that always provides T

Source
ContextMiddleware.scala