HttpResponse

constructor(request: HttpRequest, url: AbsoluteUrl, statusCode: HttpStatus, headers: Map<String, List<String>>, mediaType: MediaType?)

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.