Safe Haskell | None |
---|
Synopsis
- respondAndExit :: (?context :: ControllerContext) => Response -> IO ()
- addResponseHeaders :: [Header] -> Response -> Response
- addResponseHeadersFromContext :: (?context :: ControllerContext) => Response -> IO Response
- newtype ResponseException = ResponseException Response
Documentation
respondAndExit :: (?context :: ControllerContext) => Response -> IO () Source #
addResponseHeaders :: [Header] -> Response -> Response Source #
Add headers to current response | Returns a Response with headers
addResponseHeaders [("Content-Type", "text/html")] response
addResponseHeadersFromContext :: (?context :: ControllerContext) => Response -> IO Response Source #
Add headers to current response, getting the headers from ControllerContext | Returns a Response with headers
addResponseHeadersFromContext response
You probabaly want setHeader
newtype ResponseException Source #
ResponseException Response |
Instances
Exception ResponseException Source # | |
Defined in IHP.Controller.Response | |
Show ResponseException Source # | |
Defined in IHP.Controller.Response showsPrec :: Int -> ResponseException -> ShowS # show :: ResponseException -> String showList :: [ResponseException] -> ShowS # |