Response Definition Builder
open class ResponseDefinitionBuilder<P : Any, T : Any> : AbstractResponseDefinitionBuilder<P, T> (source)
Builder for constructing a definition of an HTTP response with configurable attributes.
Type Parameters
P
The type of the request body.
T
The type of the response body.
Properties
Link copied to clipboard
Optional MIME type of the response. Defaults to null if not specified.
Link copied to clipboard
Entry point for header configuration. Supports two syntaxes:
Link copied to clipboard
The HTTP status code of the response.
Link copied to clipboard
The HTTP status code of the response as an Int, defaulting to HttpStatusCode.OK.value (200).
Link copied to clipboard
The CapturedRequest being processed.