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