api

http4k / org.http4k.lens / BiDiWsMessageLens

BiDiWsMessageLens

class BiDiWsMessageLens<FINAL> : WsMessageLens<FINAL>

A BiDiWsMessageLens provides the bi-directional extraction of an entity from a target body, or the insertion of an entity into a target WsMessage.

Constructors

Name Summary
<init> A BiDiWsMessageLens provides the bi-directional extraction of an entity from a target body, or the insertion of an entity into a target WsMessage.BiDiWsMessageLens(get: (WsMessage) -> FINAL, setLens: (FINAL, WsMessage) -> WsMessage)

Functions

Name Summary
create fun create(value: FINAL): WsMessage
invoke operator fun invoke(target: FINAL): WsMessage