http4k / org.http4k.lens / PathLensSpec
PathLensSpec
open class PathLensSpec<out OUT>
Represents a uni-directional extraction of an entity from a target path segment.
Constructors
Name |
Summary |
<init> |
Represents a uni-directional extraction of an entity from a target path segment.PathLensSpec(paramMeta: ParamMeta , get: LensGet < String , OUT>) |
Properties
Functions
Name |
Summary |
map |
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.fun <NEXT> map(nextIn: (OUT) -> NEXT): PathLensSpec <NEXT> |
of |
open fun of(name: String , description: String ? = null): PathLens <OUT> |
Inheritors