api

http4k / org.http4k.lens / WsMessageLensSpec / map

map

fun <NEXT> map(nextIn: (OUT) -> NEXT): WsMessageLensSpec<NEXT>

Create another WsMessageLensSpec which applies the uni-directional transformation to the result. Any resultant Lens can only be used to extract the final type from a WsMessage.