api

http4k / org.http4k.lens / BiDiWsMessageLensSpec / map

map

fun <NEXT> map(nextIn: (OUT) -> NEXT, nextOut: (NEXT) -> OUT): BiDiWsMessageLensSpec<NEXT>

Create another BiDiWsMessageLensSpec which applies the bi-directional transformations to the result. Any resultant Lens can be used to extract or insert the final type from/into a WsMessage.