IHP Api Reference
Safe HaskellNone

IHP.Controller.Response

Synopsis

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