PreparedHttpResponse

data class PreparedHttpResponse(val status: HttpStatusCode, val headers: Headers = Headers.Empty, val body: HttpBody? = null)(source)

A response to send, whatever the HTTP server stack. Write out status, every header in headers, and body unchanged with its HttpBody.contentType as Content-Type; headers never contain Content-Type.

Constructors

Link copied to clipboard
constructor(status: HttpStatusCode, headers: Headers = Headers.Empty, body: HttpBody? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val headers: Headers
Link copied to clipboard
val status: HttpStatusCode