HttpResponse
data class HttpResponse(val request: HttpRequest, val url: AbsoluteUrl, val statusCode: HttpStatus, val headers: Map<String, List<String>>, val mediaType: MediaType?)
Represents a successful HTTP response received from a server.
Parameters
request
Request associated with the response.
url
Final URL of the response.
statusCode
Response status code.
headers
HTTP response headers, indexed by their name.
mediaType
Media type from the Content-Type header.
Constructors
Link copied to clipboard
constructor(request: HttpRequest, url: AbsoluteUrl, statusCode: HttpStatus, headers: Map<String, List<String>>, mediaType: MediaType?)