api

http4k / org.http4k.lens / BiDiWsMessageLens

BiDiWsMessageLens

class BiDiWsMessageLens<FINAL> : WsMessageLens<FINAL> (source)

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> BiDiWsMessageLens(get: (WsMessage) -> FINAL, setLens: (FINAL, WsMessage) -> WsMessage)
A BiDiWsMessageLens provides the bi-directional extraction of an entity from a target body, or the insertion of an entity into a target WsMessage.

Functions

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

Inherited Functions

Name Summary
invoke open operator fun invoke(target: WsMessage): FINAL
Lens operation to get the value from the target

Extension Functions

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