Packages

o

org.http4s.server

ContextMiddleware

object ContextMiddleware

Source
ContextMiddleware.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ContextMiddleware
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. def apply[F[_], T](getContext: Kleisli[[β$0$]OptionT[F, β$0$], Request[F], T])(implicit arg0: Monad[F]): ContextMiddleware[F, T]
  2. def const[F[_], T](t: T)(implicit arg0: Monad[F]): ContextMiddleware[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

    t

    The value to use as the context

    returns

    A ContextMiddleware that always provides T