api

http4k / org.http4k.lens / BiDiWsMessageLensSpec

BiDiWsMessageLensSpec

open class BiDiWsMessageLensSpec<OUT> : WsMessageLensSpec<OUT>

Represents a bi-directional extraction of an entity from a target Body, or an insertion into a target WsMessage.

Constructors

Name Summary
<init> Represents a bi-directional extraction of an entity from a target Body, or an insertion into a target WsMessage.BiDiWsMessageLensSpec(get: LensGet<WsMessage, OUT>, set: LensSet<WsMessage, OUT>)

Functions

Name Summary
map 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.fun <NEXT> map(nextIn: (OUT) -> NEXT, nextOut: (NEXT) -> OUT): BiDiWsMessageLensSpec<NEXT>
toLens Create a lens for this Specopen fun toLens(): BiDiWsMessageLens<OUT>