ContextMiddleware

class Object
trait Matchable
class Any

Value members

Concrete methods

def apply[F[_], T](getContext: Kleisli[[_] =>> OptionT[F, _$2], Request[F], T])(implicit evidence$1: Monad[F]): F => T
def const[F[_], T](t: T)(implicit evidence$2: Monad[F]): 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 Params
t

The value to use as the context

Returns

A ContextMiddleware that always provides T