api

http4k / org.http4k.lens / RequestContextKey

RequestContextKey

object RequestContextKey (source)

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>

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T