Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Response
An HTTP response.
Creates an 200 OK response from the given text. It automatically encodes the text to 'utf-8'. The Mime type is text/plain.
movedPermanently :: Url -> Response Source
notFound :: Text -> Response Source
Creates an 404 Not Found response from the given text. It automatically encodes the text to 'utf-8'. The Mime type is text/plain.