api

http4k / org.http4k.contract / ContractRouteSpec1

ContractRouteSpec1

class ContractRouteSpec1<out A> : ContractRouteSpec (source)

Types

Name Summary
Binder inner class Binder<out A> : ContractRouteSpec.ContractRequestBuilder

Properties

Name Summary
a val a: PathLens<A>

Inherited Properties

Name Summary
pathFn val pathFn: (PathSegments) -> PathSegments
pathLenses vararg val pathLenses: Array<out PathLens<*>>
routeMeta val routeMeta: RouteMeta

Functions

Name Summary
bindContract infix fun bindContract(method: Method): ContractRouteSpec1.Binder<A>
div infix operator fun div(next: String): ContractRouteSpec2<A, String>
infix operator fun <NEXT> div(next: PathLens<NEXT>): ContractRouteSpec2<A, NEXT>

Extension Functions

Name Summary
meta infix fun <A> ContractRouteSpec1<A>.meta(new: RouteMetaDsl.() -> Unit): ContractRouteSpec1<A>
with fun <T> T.with(vararg modifiers: (T) -> T): T