mohws-0.2.1.3: Modular Haskell Web Server

Safe HaskellNone

Network.MoHWS.HTTP.Response

Documentation

data Body body Source

Constructors

Body 

Fields

source :: String
 
size :: Maybe Integer
 
close :: IO ()
 
content :: body
 

Instances

data T body Source

Constructors

Cons 

Instances

Functor T 
Show (T body) 
HasHeaders (T body) 

toHTTPbis :: T body -> Response bodySource

fromHTTPbis :: Response body -> T bodySource

hasBody :: C body => Body body -> BoolSource

sendBody :: C body => Handle -> Body body -> IO ()Source

sendBodyChunked :: C body => Int -> Handle -> Body body -> IO ()Source

bodyFromString :: C body => body -> Body bodySource

bodyWithSizeFromString :: C body => body -> Body bodySource

makeCont :: C body => T ext -> T bodySource

makeSwitchingProtocols :: C body => T ext -> T bodySource

makeOk :: T ext -> Bool -> Group -> Body body -> T bodySource

makeCreated :: C body => T ext -> T bodySource

makeAccepted :: C body => T ext -> T bodySource

makeNonAuthoritiveInformation :: C body => T ext -> T bodySource

makeNoContent :: C body => T ext -> T bodySource

makeResetContent :: C body => T ext -> T bodySource

makePartialContent :: C body => T ext -> T bodySource

makeMultipleChoices :: C body => T ext -> T bodySource

makeMovedPermanently :: T ext -> Group -> Body body -> URI -> T bodySource

makeFound :: C body => T ext -> T bodySource

makeSeeOther :: C body => T ext -> T bodySource

makeNotModified :: C body => T ext -> T bodySource

makeUseProxy :: C body => T ext -> T bodySource

makeTemporaryRedirect :: C body => T ext -> T bodySource

makeBadRequest :: C body => T ext -> T bodySource

makeUnauthorized :: C body => T ext -> T bodySource

makePaymentRequired :: C body => T ext -> T bodySource

makeForbidden :: C body => T ext -> T bodySource

makeNotFound :: C body => T ext -> T bodySource

makeMethodNotAllowed :: C body => T ext -> T bodySource

makeNotAcceptable :: C body => T ext -> T bodySource

makeRequestTimeOut :: C body => T ext -> T bodySource

makeConflict :: C body => T ext -> T bodySource

makeGone :: C body => T ext -> T bodySource

makeLengthRequired :: C body => T ext -> T bodySource

makePreconditionFailed :: C body => T ext -> T bodySource

makeRequestEntityTooLarge :: C body => T ext -> T bodySource

makeRequestURITooLarge :: C body => T ext -> T bodySource

makeUnsupportedMediaType :: C body => T ext -> T bodySource

makeExpectationFailed :: C body => T ext -> T bodySource

makeInternalServerError :: C body => T ext -> T bodySource

makeNotImplemented :: C body => T ext -> T bodySource

makeBadGateway :: C body => T ext -> T bodySource

makeServiceUnavailable :: C body => T ext -> T bodySource

makeGatewayTimeOut :: C body => T ext -> T bodySource

makeVersionNotSupported :: C body => T ext -> T bodySource

makeError :: C body => Int -> T ext -> T bodySource

makeWithBody :: Int -> T ext -> Bool -> Group -> Body body -> T bodySource

generateErrorPage :: C body => Int -> T ext -> Body bodySource