Copyright | 2014, Peter Harpending. |
---|---|
License | BSD3 |
Maintainer | Peter Harpending <pharpend2@gmail.com> |
Stability | experimental |
Portability | archlinux |
Safe Haskell | None |
Language | Haskell2010 |
- class Responsible a where
- class Irresponsible a where
- respond200 :: ByteString -> ByteString -> Response
- respond403 :: ByteString -> ByteString -> Response
- respond404 :: ByteString -> ByteString -> Response
- respond405 :: ByteString -> ByteString -> Response
Documentation
class Responsible a where Source
Things that generate a response
class Irresponsible a where Source
Things that generate a response, but need IO to do so
respond200 :: ByteString -> ByteString -> Response Source
Given a content type, such as "text/html"
, and a Bytestring
response, send a response with status 200.
respond403 :: ByteString -> ByteString -> Response Source
Given a content type, such as "text/html"
, and a Bytestring
response, send a response with status 403.
respond404 :: ByteString -> ByteString -> Response Source
Given a content type, such as "text/html"
, and a Bytestring
response, send a response with status 404.
respond405 :: ByteString -> ByteString -> Response Source
Given a content type, such as "text/html"
, and a Bytestring
response, send a response with status 405.