ContextMiddleware

org.http4s.server.ContextMiddleware$

Attributes

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

Members list

Concise view

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

Attributes

t

The value to use as the context

Returns:

A ContextMiddleware that always provides T

Source:
ContextMiddleware.scala