api

http4k / org.http4k.lens / BodyLensSpec

BodyLensSpec

open class BodyLensSpec<out OUT> (source)

Represents a uni-directional extraction of an entity from a target Body.

Constructors

Name Summary
<init> BodyLensSpec(metas: List<Meta>, contentType: ContentType, get: LensGet<HttpMessage, OUT>)
Represents a uni-directional extraction of an entity from a target Body.

Functions

Name Summary
map fun <NEXT> map(nextIn: (OUT) -> NEXT): BodyLensSpec<NEXT>
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.
toLens open fun toLens(): BodyLens<OUT>
Create a lens for this Spec

Extension Functions

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

Inheritors

Name Summary
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.