api

http4k / org.http4k.core / RequestContexts / invoke

invoke

fun invoke(target: Request): RequestContext

Lens operation to get the value from the target

Exceptions

LensFailure - if the value could not be retrieved from the target (missing/invalid etc)fun <R : Request> invoke(value: RequestContext, target: R): R

Lens operation to set the value into the target