mohws-0.2.1.5: Modular Haskell Web Server

Safe HaskellNone
LanguageHaskell98

Network.MoHWS.HTTP.Response

Documentation

data Body body Source #

Constructors

Body 

Fields

Instances

Functor Body Source # 

Methods

fmap :: (a -> b) -> Body a -> Body b #

(<$) :: a -> Body b -> Body a #

data T body Source #

Constructors

Cons 

Instances

Functor T Source # 

Methods

fmap :: (a -> b) -> T a -> T b #

(<$) :: a -> T b -> T a #

Show (T body) Source # 

Methods

showsPrec :: Int -> T body -> ShowS #

show :: T body -> String #

showList :: [T body] -> ShowS #

HasHeaders (T body) Source # 

Methods

getHeaders :: T body -> [Header] #

setHeaders :: T body -> [Header] -> T body #

toHTTPbis :: T body -> Response body Source #

fromHTTPbis :: Response body -> T body Source #

hasBody :: C body => Body body -> Bool Source #

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

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

bodyFromString :: C body => body -> Body body Source #

bodyWithSizeFromString :: C body => body -> Body body Source #

makeCont :: C body => T ext -> T body Source #

makeSwitchingProtocols :: C body => T ext -> T body Source #

makeOk :: T ext -> Bool -> Group -> Body body -> T body Source #

makeCreated :: C body => T ext -> T body Source #

makeAccepted :: C body => T ext -> T body Source #

makeNonAuthoritiveInformation :: C body => T ext -> T body Source #

makeNoContent :: C body => T ext -> T body Source #

makeResetContent :: C body => T ext -> T body Source #

makePartialContent :: C body => T ext -> T body Source #

makeMultipleChoices :: C body => T ext -> T body Source #

makeMovedPermanently :: T ext -> Group -> Body body -> URI -> T body Source #

makeFound :: C body => T ext -> T body Source #

makeSeeOther :: C body => T ext -> T body Source #

makeNotModified :: C body => T ext -> T body Source #

makeUseProxy :: C body => T ext -> T body Source #

makeTemporaryRedirect :: C body => T ext -> T body Source #

makeBadRequest :: C body => T ext -> T body Source #

makeUnauthorized :: C body => T ext -> T body Source #

makePaymentRequired :: C body => T ext -> T body Source #

makeForbidden :: C body => T ext -> T body Source #

makeNotFound :: C body => T ext -> T body Source #

makeMethodNotAllowed :: C body => T ext -> T body Source #

makeNotAcceptable :: C body => T ext -> T body Source #

makeProxyAuthenticationRequired :: C body => T ext -> T body Source #

makeRequestTimeOut :: C body => T ext -> T body Source #

makeConflict :: C body => T ext -> T body Source #

makeGone :: C body => T ext -> T body Source #

makeLengthRequired :: C body => T ext -> T body Source #

makePreconditionFailed :: C body => T ext -> T body Source #

makeRequestEntityTooLarge :: C body => T ext -> T body Source #

makeRequestURITooLarge :: C body => T ext -> T body Source #

makeUnsupportedMediaType :: C body => T ext -> T body Source #

makeRequestedRangeNotSatisfiable :: C body => T ext -> T body Source #

makeExpectationFailed :: C body => T ext -> T body Source #

makeInternalServerError :: C body => T ext -> T body Source #

makeNotImplemented :: C body => T ext -> T body Source #

makeBadGateway :: C body => T ext -> T body Source #

makeServiceUnavailable :: C body => T ext -> T body Source #

makeGatewayTimeOut :: C body => T ext -> T body Source #

makeVersionNotSupported :: C body => T ext -> T body Source #

makeError :: C body => Int -> T ext -> T body Source #

makeWithBody :: Int -> T ext -> Bool -> Group -> Body body -> T body Source #

generateErrorPage :: C body => Int -> T ext -> Body body Source #

genErrorHtml :: Int -> T ext -> Html Source #