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

Extension Functions

Name Summary
asResult Convert the result of a lens extraction to a Result4k type whichfun <IN, OUT> LensExtractor<IN, OUT>.asResult(): LensExtractor<IN, Result<OUT, LensFailure>>