Response
An HTTP Response. The Show instance of this type is used for message serialisation, which means no body data is output, additionally the output will show an HTTP version of 1.1 instead of the actual version returned by a server.
For easy pattern matching, HTTP response codes xyz are represented as (x,y,z).
ResponseData contains the head of a response payload; HTTP response code, accompanying text description + header fields.
getResponseBody response takes the response of a HTTP requesting action and tries to extricate the body of the Response response. If the request action returned an error, an IO exception is raised.
getResponseVersion rsp returns the HTTP protocol version of the response rsp. If Nothing, the default httpVersion can be assumed.
setResponseVersion v rsp returns a new response, identical to rsp, but with its HTTP version set to v.