api

http4k / org.http4k.lens / PathLensSpec

PathLensSpec

open class PathLensSpec<out OUT> (source)

Represents a uni-directional extraction of an entity from a target path segment.

Constructors

Name Summary
<init> PathLensSpec(paramMeta: ParamMeta, get: LensGet<String, OUT>)
Represents a uni-directional extraction of an entity from a target path segment.

Properties

Name Summary
paramMeta val paramMeta: ParamMeta

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.
of open fun of(name: String, description: String? = null): PathLens<OUT>

Extension Functions

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

Inheritors

Name Summary
BiDiPathLensSpec open class BiDiPathLensSpec<OUT> : PathLensSpec<OUT>