Module

HTTPure.Request

Package
purescript-httpure
Repository
cprussin/purescript-httpure

#Request Source

type Request = { body :: Body, headers :: Headers, method :: Method, path :: Path, query :: Query }

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

#fromHTTPRequest Source

fromHTTPRequest :: Request -> Aff Request

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

#fullPath Source

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.