BodyLensSpec

open class BodyLensSpec<out OUT>(metas: List<Meta>, contentType: ContentType, get: LensGet<HttpMessage, OUT>)

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

Inheritors

Constructors

Link copied to clipboard
constructor(metas: List<Meta>, contentType: ContentType, get: LensGet<HttpMessage, OUT>)

Functions

Link copied to clipboard
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.

Link copied to clipboard
open fun toLens(): BodyLens<OUT>

Create a lens for this Spec