api

http4k / org.http4k.lens / WsMessageLensSpec

WsMessageLensSpec

open class WsMessageLensSpec<out OUT>

Represents a extraction of an entity from a target WsMessage.

Constructors

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

Functions

Name Summary
map 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.fun <NEXT> map(nextIn: (OUT) -> NEXT): WsMessageLensSpec<NEXT>
toLens Create a lens for this Specopen fun toLens(): WsMessageLens<OUT>

Inheritors

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