HttpResponse

HttpResponse

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

Constructors

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

Properties

NameSummary
bodyvar body: ByteArray
The body of this response.
headersval headers: Map<String, String>
The HTTP headers of this response.
httpRequestval httpRequest: HttpRequest
The corresponding request object of this response
statusval status: Int
The HTTP status code
urlval url: String
The URL of the corresponding request. May differ from HttpRequest.url when redirects have happened.

Functions

NameSummary
equalsopen operator override fun equals(other: Any?): Boolean
hashCodeopen override fun hashCode(): Int