Response Definition
open class ResponseDefinition<P, T>(contentType: <Error class: unknown class> = ContentType.Application.Json, val body: T? = null, httpStatus: <Error class: unknown class> = HttpStatusCode.OK, headers: <Error class: unknown class>.() -> Unit? = null, headerList: List<<Error class: unknown class><String, String>> = emptyList<Pair<String, String>>(), delay: <Error class: unknown class>) : AbstractResponseDefinition<T>
Represents a concrete implementation of an HTTP response definition with a specific response body. This class builds on the AbstractResponseDefinition
to provide additional configuration and behavior.
Parameters
P
The type of the request body.
T
The type of the response body.
Constructors
Link copied to clipboard
constructor(contentType: <Error class: unknown class> = ContentType.Application.Json, body: T? = null, httpStatus: <Error class: unknown class> = HttpStatusCode.OK, headers: <Error class: unknown class>.() -> Unit? = null, headerList: List<<Error class: unknown class><String, String>> = emptyList<Pair<String, String>>(), delay: <Error class: unknown class>)