Response Definition Builder
constructor(request: CapturedRequest<P>, contentType: ContentType? = null, body: T? = null, httpStatusCode: Int = 200, httpStatus: HttpStatusCode = HttpStatusCode.fromValue(httpStatusCode), formatter: HttpFormatter)(source)
Parameters
P
The type of the request body.
T
The type of the response body.
headers
A mutable list of additional custom headers for the response.
Inherits functionality from AbstractResponseDefinitionBuilder to allow additional header manipulations and provides a concrete implementation of the response building process.