HttpResponse
constructor(url: URL, statusCode: Int, message: String, headers: Map<String, List<String>>, body: ByteArray? = null)
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