Output

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

Associates a StatusMatcher with an output Body definition and optional response headers.

Constructors

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

Properties

Link copied to clipboard
val body: B

Body definition emitted when statusMatcher is satisfied.

Link copied to clipboard
val headers: H

Headers emitted when statusMatcher is satisfied.

Link copied to clipboard

Status matching logic that selects this output definition.