api

http4k / org.http4k.lens / WsMessageLensSpec

WsMessageLensSpec

open class WsMessageLensSpec<out OUT> (source)

Represents a extraction of an entity from a target WsMessage.

Constructors

Name Summary
<init> WsMessageLensSpec(get: LensGet<WsMessage, OUT>)
Represents a extraction of an entity from a target WsMessage.

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

Extension Functions

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

Inheritors

Name Summary
BiDiWsMessageLensSpec open class BiDiWsMessageLensSpec<OUT> : WsMessageLensSpec<OUT>
Represents a bi-directional extraction of an entity from a target Body, or an insertion into a target WsMessage.