ContextMiddleware

class Object
trait Matchable
class Any

Value members

Concrete methods

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

Returns:

A ContextMiddleware that always provides T

Source:
ContextMiddleware.scala