Response

Response :: ResponseCode -> String -> [Header] -> a -> Response a
HTTP Network.HTTP.Base
data Response a
HTTP Network.HTTP.Base
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.
type Response_String = Response String
HTTP Network.HTTP.Base
type ResponseCode = (Int, Int, Int)
HTTP Network.HTTP.Base
For easy pattern matching, HTTP response codes xyz are represented as (x,y,z).
type ResponseData = (ResponseCode, String, [Header])
HTTP Network.HTTP.Base
ResponseData contains the head of a response payload; HTTP response code, accompanying text description + header fields.
ResponseEnd :: ResponseData -> BrowserEventType
HTTP Network.Browser
ResponseFinish :: BrowserEventType
HTTP Network.Browser
data ResponseNextStep
HTTP Network.HTTP.Base
responseParseError :: String -> String -> Result a
HTTP Network.HTTP.Base
getResponseBody :: Result (Response ty) -> IO ty
HTTP Network.HTTP
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.
getResponseCode :: Result (Response ty) -> IO ResponseCode
HTTP Network.HTTP
getResponseBody response takes the response of a HTTP requesting action and tries to extricate the status code of the Response response. If the request action returned an error, an IO exception is raised.
getResponseVersion :: Response a -> Maybe String
HTTP Network.HTTP.Base
getResponseVersion rsp returns the HTTP protocol version of the response rsp. If Nothing, the default httpVersion can be assumed.
type HTTPResponse a = Response a
HTTP Network.HTTP.Base
matchResponse :: RequestMethod -> ResponseCode -> ResponseNextStep
HTTP Network.HTTP.Base
parseResponseHead :: [String] -> Result ResponseData
HTTP Network.HTTP.Base
setResponseVersion :: String -> Response a -> Response a
HTTP Network.HTTP.Base
setResponseVersion v rsp returns a new response, identical to rsp, but with its HTTP version set to v.