api

http4k / org.http4k.lens / BiDiPathLensSpec

BiDiPathLensSpec

open class BiDiPathLensSpec<OUT> : PathLensSpec<OUT> (source)

Constructors

Name Summary
<init> BiDiPathLensSpec(paramMeta: ParamMeta, get: LensGet<String, OUT>, set: LensSet<Request, OUT>)

Inherited Properties

Name Summary
paramMeta val paramMeta: ParamMeta

Functions

Name Summary
map fun <NEXT> map(nextIn: (OUT) -> NEXT, nextOut: (NEXT) -> OUT): BiDiPathLensSpec<NEXT>
Create another BiDiPathLensSpec which applies the bi-directional transformations to the result. Any resultant Lens can be used to extract or insert the final type from/into a path segment.
of open fun of(name: String, description: String?): BiDiPathLens<OUT>
Create a lens for this Spec

Inherited Functions

Name Summary
map fun <NEXT> map(nextIn: (OUT) -> NEXT): PathLensSpec<NEXT>
Create another PathLensSpec which applies the uni-directional transformation to the result. Any resultant Lens can only be used to extract the final type from a target path segment.

Extension Functions

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

Inheritors

Name Summary
Path object Path : BiDiPathLensSpec<String>