Module

HTTPure.Request

#Request

type Request = { body :: String, headers :: Headers, httpVersion :: Version, method :: Method, path :: Path, query :: Query, url :: String }

The Request type is a Record type that includes fields for accessing the different parts of the HTTP request.

#fromHTTPRequest

fromHTTPRequest :: Request -> Aff Request

Given an HTTP Request object, this method will convert it to an HTTPure Request object.

#fullPath

fullPath :: Request -> String

Return the full resolved path, including query parameters. This may not match the requested path--for instance, if there are empty path segments in the request--but it is equivalent.

Modules