HttpResponse

data class HttpResponse(httpRequest: HttpRequest, url: String, status: Int, headers: Map<String, String>, body: ByteArray)

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int

Properties

Link copied to clipboard
var body: ByteArray

The body of this response.

Link copied to clipboard
val headers: Map<String, String>

The HTTP headers of this response.

Link copied to clipboard
val httpRequest: HttpRequest

The corresponding request object of this response

Link copied to clipboard
val status: Int

The HTTP status code

Link copied to clipboard
val url: String

The URL of the corresponding request. May differ from HttpRequest.url when redirects have happened.