skell-0.0.1.0: An overly complex Haskell web framework.

Copyright2014, Peter Harpending.
LicenseBSD3
MaintainerPeter Harpending <pharpend2@gmail.com>
Stabilityexperimental
Portabilityarchlinux
Safe HaskellNone
LanguageHaskell2010

Web.Skell.Responsible

Description

 

Synopsis

Documentation

class Responsible a where Source

Things that generate a response

Methods

respond :: a -> Request -> Response Source

class Irresponsible a where Source

Things that generate a response, but need IO to do so

Methods

respondIO :: a -> Request -> IO Response Source

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.