Input

data class Input<H : Headers, B : Body<*>>(val headers: H, val body: B)(source)

Request contract for an endpoint.

Tapik keeps headers and body together because they are configured by the same DSL stage and are both needed to derive a client method signature or interpret an incoming request.

Constructors

Link copied to clipboard
constructor(headers: H, body: B)

Properties

Link copied to clipboard
val body: B

Body contract applied to the request.

Link copied to clipboard
val headers: H

Header contract applied to the request.