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 -> String
Get the request HTTP version
#requestMethod Source
requestMethod :: Request -> String
Get the request method (GET, POST, etc.)
#requestURL Source
requestURL :: Request -> String
Get the request URL
#requestAsStream Source
requestAsStream :: Request -> Readable ()
Coerce the request object into a readable stream.
#setStatusMessage Source
setStatusMessage :: Response -> String -> Effect Unit
Set the status message.
#responseAsStream Source
responseAsStream :: Response -> Writable ()
Coerce the response object into a writable stream.