setStatus :: forall e. Int -> Handler eSet status code.
getResponseHeader :: forall e a. (IsForeign a) => String -> HandlerM (express :: EXPRESS | e) (Maybe a)Return response header value.
setResponseHeader :: forall e a. String -> a -> Handler eSet response header value.
headersSent :: forall e. HandlerM (express :: EXPRESS | e) BooleanCheck if headers have been sent already
setCookie :: forall e. String -> String -> CookieOptions -> Handler eSet cookie by its name using specified options (maxAge, path, etc).
clearCookie :: forall e. String -> String -> Handler eClear cookie.
send :: forall e a. a -> Handler eSend a response. Could be object, string, buffer, etc.
sendJson :: forall e a. a -> Handler eSend a JSON response. Necessary headers are set automatically.
sendJsonp :: forall e a. a -> Handler eSend a JSON response with JSONP support.
redirect :: forall e. String -> Handler eRedirect to the given URL setting status to 302.
redirectWithStatus :: forall e. Int -> String -> Handler eRedirect to the given URL using custom status.
setLocation :: forall e. String -> Handler eSet Location header.
setContentType :: forall e. String -> Handler eSet Content-Type header.
sendFile :: forall e. String -> Handler eSend file by its path.
sendFileExt :: forall e o. String -> { | o } -> (Error -> ExpressM e Unit) -> Handler eSend file by its path using specified options and error handler. See http://expressjs.com/4x/api.html#res.sendfile
download :: forall e. String -> Handler eTransfer file as an attachment (will prompt user to download).
downloadExt :: forall e. String -> String -> (Error -> ExpressM e Unit) -> Handler eTransfer file as an attachment using specified filename and error handler.