api

http4k / org.http4k.lens / BodyLensSpec / map

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.