api

http4k / org.http4k.lens / PathLens

PathLens

open class PathLens<out FINAL> : Lens<Request, FINAL>

Constructors

Name Summary
<init> PathLens(meta: Meta, get: (String) -> FINAL)

Functions

Name Summary
invoke operator fun invoke(target: String): FINAL
toString open fun toString(): String

Extension Functions

Name Summary
bindContract infix fun <A> PathLens<A>.bindContract(method: Method): Binder<A>
div operator fun <A> PathLens<A>.div(next: String): ContractRouteSpec2<A, String>
operator fun <A, B> PathLens<A>.div(next: PathLens<B>): ContractRouteSpec2<A, B>
meta infix fun <A> PathLens<A>.meta(new: RouteMetaDsl.() -> Unit): ContractRouteSpec1<A>

Inheritors

Name Summary
BiDiPathLens class BiDiPathLens<FINAL> : LensInjector<FINAL, Request>, PathLens<FINAL>