Module
Node.HTTP
- Package
- purescript-node-http
- Repository
- purescript-node/purescript-node-http
This module defines low-level bindings to the Node HTTP module.
#httpVersion Source
httpVersion :: Request -> StringGet the request HTTP version
#requestMethod Source
requestMethod :: Request -> StringGet the request method (GET, POST, etc.)
#requestURL Source
requestURL :: Request -> StringGet the request URL
#requestAsStream Source
requestAsStream :: Request -> Readable ()Coerce the request object into a readable stream.
#setStatusMessage Source
setStatusMessage :: Response -> String -> Effect UnitSet the status message.
#responseAsStream Source
responseAsStream :: Response -> Writable ()Coerce the response object into a writable stream.