api

http4k / org.http4k.lens / WsMessageLens

WsMessageLens

open class WsMessageLens<out FINAL> : LensExtractor<WsMessage, FINAL> (source)

A WsMessageLens provides the extraction of an entity from a target WsMessage.

Constructors

Name Summary
<init> WsMessageLens(getLens: (WsMessage) -> FINAL)
A WsMessageLens provides the extraction of an entity from a target WsMessage.

Functions

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

Inherited Functions

Name Summary
extract open fun extract(target: IN): OUT
Lens operation to get the value from the target. Synonym for invoke(IN)
get open operator fun <R : IN> get(target: R): OUT
Lens operation to get the value from the target. Synonym for invoke(IN)

Extension Functions

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

Inheritors

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