api

http4k / org.http4k.lens / RequestContextKey

RequestContextKey

object RequestContextKey

Functions

Name Summary
defaulted fun <T> defaulted(store: Store<RequestContext>, default: T, name: String = UUID.randomUUID().toString()): BiDiLens<Request, T>
optional fun <T> optional(store: Store<RequestContext>, name: String = UUID.randomUUID().toString()): BiDiLens<Request, T?>
required fun <T> required(store: Store<RequestContext>, name: String = UUID.randomUUID().toString()): RequestContextLens<T>