Module

Hyper.Request

Package
purescript-hyper
Repository
owickstrom/hyper

#Request Source

class Request req m  where

Members

#RequestData Source

type RequestData = { contentLength :: Maybe Int, headers :: Object String, method :: Either Method CustomMethod, parsedUrl :: Lazy ParsedUrl, url :: String }

#ParsedUrl Source

type ParsedUrl = { path :: Array String, query :: Either String (Array (Tuple String (Maybe String))) }

#BaseRequest Source

class (Request req m) <= BaseRequest req m 

#ReadableBody Source

class ReadableBody req m b  where

A ReadableBody instance reads the complete request body as a value of type b. For streaming the request body, see the StreamableBody class.

Members

#StreamableBody Source

class StreamableBody req m stream | req -> stream where

A StreamableBody instance returns a stream of the request body, of type stream. To read the whole body as a value, without streaming, see the ReadableBody class.

Members