api

http4k / org.http4k.lens / BiDiWsMessageLensSpec

BiDiWsMessageLensSpec

open class BiDiWsMessageLensSpec<OUT> : WsMessageLensSpec<OUT> (source)

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

Constructors

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

Functions

Name Summary
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.
toLens open fun toLens(): BiDiWsMessageLens<OUT>
Create a lens for this Spec

Inherited Functions

Name Summary
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.

Extension Functions

Name Summary
with fun <T> T.with(vararg modifiers: (T) -> T): T