http4k / org.http4k.lens / PathLens
open class PathLens<out FINAL> :
Lens
<
Request
, FINAL>
Name | Summary |
---|---|
<init> | PathLens(meta: Meta , get: ( String ) -> FINAL) |
Name | Summary |
---|---|
invoke | operator fun invoke(target: String ): FINAL |
toString | open fun toString(): String |
Name | Summary |
---|---|
asResult | Convert the result of a lens extraction to a Result4k type whichfun <IN, OUT> LensExtractor <IN, OUT>.asResult(): LensExtractor <IN, Result<OUT, LensFailure >> |
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> |
matches | Check the content of any lens on a request for routing purposes.fun <T> Lens < Request , T>.matches(fn: (T) -> Boolean ): Router |
meta | infix fun <A> PathLens <A>.meta(new: RouteMetaDsl .() -> Unit ): ContractRouteSpec1 <A> |
Name | Summary |
---|---|
BiDiPathLens | class BiDiPathLens<FINAL> : LensInjector <FINAL, Request >, PathLens <FINAL> |