Module

HTTPure.Request

Package
purescript-httpure
Repository
cprussin/purescript-httpure

#Request Source

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

A Route is a function that takes a Method, a Path, a Query, a Header, and a Body, and returns a Response monad.

#fromHTTPRequest Source

fromHTTPRequest :: forall e. Request -> Aff (HTTPureEffects e) Request

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