ihp-1.3.0: Haskell Web Framework
Safe HaskellNone
LanguageHaskell2010

IHP.Controller.Response

Synopsis

Documentation

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