Module
Bucketchain.Http
- Package
- purescript-bucketchain
- Repository
- Bucketchain/purescript-bucketchain
#httpVersion Source
httpVersion :: Http -> String
Get the request HTTP version.
#requestMethod Source
requestMethod :: Http -> String
Get the request method (GET, POST, etc.).
#requestOriginalURL Source
requestOriginalURL :: Http -> String
Get the request original URL.
#requestURL Source
requestURL :: Http -> String
Get the request URL.
#toReadable Source
toReadable :: Http -> Readable ()
Convert a Http stream to a Readable stream.
#responseHeader Source
responseHeader :: Http -> String -> Maybe String
Get a response header value by header name.
#responseHeaders Source
responseHeaders :: Http -> String -> Array String
Get response header values by header name.
#statusCode Source
statusCode :: Http -> Int
Get the status code.
#toWritable Source
toWritable :: Http -> Writable ()
This is for internal. Do not use it.