HttpResponse

sealed interface HttpResponse

Immutable container for an HTTP response

Properties

Link copied to clipboard
abstract val body: HttpBody

The response body

Link copied to clipboard
abstract val headers: Headers

The response headers

Link copied to clipboard
abstract val status: HttpStatusCode

The response status code

Inherited functions

Link copied to clipboard
fun HttpResponse.copy(status: HttpStatusCode = this.status, headers: Headers = this.headers, body: HttpBody = this.body): HttpResponse

Replace the response body

Link copied to clipboard