Abstract Response Definition
abstract class AbstractResponseDefinition<T>(val contentType: <Error class: unknown class>? = null, val httpStatus: <Error class: unknown class> = HttpStatusCode.OK, val headers: <Error class: unknown class>.() -> Unit? = null, val headerList: List<<Error class: unknown class><String, String>> = emptyList(), val delay: <Error class: unknown class> = Duration.ZERO)
Represents the base definition of an HTTP response in a mapping between a request and its corresponding response. Provides the required attributes and behavior for configuring HTTP responses, including status code, headers, and content type. This class serves as the foundation for more specialized response definitions.
Parameters
T
The type of the response data.
Inheritors
Constructors
Link copied to clipboard
constructor(contentType: <Error class: unknown class>? = null, httpStatus: <Error class: unknown class> = HttpStatusCode.OK, headers: <Error class: unknown class>.() -> Unit? = null, headerList: List<<Error class: unknown class><String, String>> = emptyList(), delay: <Error class: unknown class> = Duration.ZERO)