PartialMockzillaHttpResponse

@Serializable
data class PartialMockzillaHttpResponse(val statusCode: HttpStatusCode? = null, val headers: Map<String, String>? = null, val body: String? = null)

A partial HTTP response used by dashboard presets, allowing a subset of response fields to be overridden. null fields are left unchanged from the endpoint's default response.

Constructors

Link copied to clipboard
constructor(statusCode: HttpStatusCode? = null, headers: Map<String, String>? = null, body: String? = null)

Properties

Link copied to clipboard
val body: String?

The response body override, or null to leave unchanged.

Link copied to clipboard

HTTP response headers override, or null to leave unchanged.

Link copied to clipboard
@Serializable(with = HttpStatusCodeSerializer::class)
val statusCode: HttpStatusCode?

The HTTP status code override, or null to leave unchanged.