api

http4k / org.http4k.lens / LensInjector

LensInjector

interface LensInjector<in IN, in OUT>

Functions

Name Summary
inject Lens operation to set the value into the target. Synomym for invoke(IN, OUT)open fun <R : OUT> inject(value: IN, target: R): R
invoke Lens operation to set the value into the targetabstract operator fun <R : OUT> invoke(value: IN, target: R): R
of Bind this Lens to a value, so we can set it into a targetopen infix fun <R : OUT> of(value: IN): (R) -> R
set Lens operation to set the value into the target. Synomym for invoke(IN, OUT)open operator fun <R : OUT> set(target: R, value: IN): R

Inheritors

Name Summary
BiDiBodyLens A BiDiBodyLens provides the bi-directional extraction of an entity from a target body, or the insertion of an entity into a target body.class BiDiBodyLens<FINAL> : LensInjector<FINAL, HttpMessage>, BodyLens<FINAL>
BiDiLens A BiDiLens provides the bi-directional extraction of an entity from a target, or the insertion of an entity into a target.class BiDiLens<in IN : Any, FINAL> : LensInjector<FINAL, IN>, Lens<IN, FINAL>
BiDiPathLens class BiDiPathLens<FINAL> : LensInjector<FINAL, Request>, PathLens<FINAL>
Store interface Store<OUT> : LensInjector<OUT, Request>, LensExtractor<Request, OUT>