HttpResponse
data class HttpResponse(val httpRequest: HttpRequest, val url: String, val status: Int, val headers: Map<String, String>, var body: ByteArray)
Constructors
Properties
| Name | Summary |
|---|---|
| body | var body: ByteArray The body of this response. |
| headers | val headers: Map<String, String> The HTTP headers of this response. |
| httpRequest | val httpRequest: HttpRequest The corresponding request object of this response |
| status | val status: Int The HTTP status code |
| url | val url: String The URL of the corresponding request. May differ from HttpRequest.url when redirects have happened. |