HttpResponse
data class HttpResponse(val url: URL, val statusCode: Int, val message: String, val headers: Map<String, List<String>>, val body: ByteArray? = null)
Represents the response data for an HTTP response
Parameters
url
The original URL of the request that returned this response
statusCode
The HTTP status code of the response.
message
The response message from java.net.HttpURLConnection if available.
headers
The HTTP response headers for this request
body
Optional body returned by the response