HttpResponse

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

Constructors

Link copied to clipboard
constructor(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

The body of this response.

Link copied to clipboard

The HTTP headers of this response.

Link copied to clipboard

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.