api

http4k / org.http4k.lens / BiDiPathLens

BiDiPathLens

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

Constructors

Name Summary
<init> BiDiPathLens(meta: Meta, get: (String) -> FINAL, set: (FINAL, Request) -> Request)

Functions

Name Summary
invoke Lens operation to set the value into the targetoperator fun <R : Request> invoke(value: FINAL, target: R): R

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>