http4k / org.http4k.lens / BiDiBodyLensSpec
open class BiDiBodyLensSpec<OUT> :
BodyLensSpec
<OUT>
Represents a bi-directional extraction of an entity from a target Body, or an insertion into a target Body.
Name | Summary |
---|---|
<init> | Represents a bi-directional extraction of an entity from a target Body, or an insertion into a target Body.BiDiBodyLensSpec(metas: List < Meta >, contentType: ContentType , get: LensGet < HttpMessage , OUT>, set: LensSet < HttpMessage , OUT>) |
Name | Summary |
---|---|
map | Create another BiDiBodyLensSpec which applies the bi-directional transformations to the result. Any resultant Lens can be used to extract or insert the final type from/into a Body.fun <NEXT> map(nextIn: (OUT) -> NEXT, nextOut: (NEXT) -> OUT): BiDiBodyLensSpec <NEXT> |
toLens | Create a lens for this Specopen fun toLens(): BiDiBodyLens <OUT> |