Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
fast-logger System.Log.FastLogger.Internal No documentation available.
-
fast-logger System.Log.FastLogger.Internal No documentation available.
InvalidArgs :: [Text] -> ErrorResponseyesod-core Yesod.Core Indicates some sort of invalid or missing argument, like a missing query parameter or malformed JSON body. Examples Yesod functions that send this include requireCheckJsonBody and Yesod.Auth.GoogleEmail2. HTTP status: 400.
type
LiteWidget = WidgetFor LiteAppyesod-core Yesod.Core No documentation available.
class MonadHandler m =>
MonadWidget (m :: Type -> Type)yesod-core Yesod.Core No documentation available.
-
yesod-core Yesod.Core Looks up the CSRF token from the request headers or POST parameters. If the value doesn't match the token stored in the session, this function throws a PermissionDenied error. For details, see the "AJAX CSRF protection" section of Yesod.Core.Handler. Since 1.4.14
csrfSetCookieMiddleware :: HandlerFor site res -> SetCookie -> HandlerFor site resyesod-core Yesod.Core Takes a SetCookie and overrides its value with a CSRF token, then sets the cookie. See setCsrfCookieWithCookie. For details, see the "AJAX CSRF protection" section of Yesod.Core.Handler. Make sure to set the setCookiePath to the root path of your application, otherwise you'll generate a new CSRF token for every path of your app. If your app is run from from e.g. www.example.com/app1, use app1. The vast majority of sites will just use /. Since 1.4.14
defaultCsrfCheckMiddleware :: Yesod site => HandlerFor site res -> HandlerFor site resyesod-core Yesod.Core Calls csrfCheckMiddleware with isWriteRequest, defaultCsrfHeaderName, and defaultCsrfParamName as parameters. Since 1.4.14
defaultCsrfMiddleware :: Yesod site => HandlerFor site res -> HandlerFor site resyesod-core Yesod.Core Calls defaultCsrfSetCookieMiddleware and defaultCsrfCheckMiddleware. For details, see the "AJAX CSRF protection" section of Yesod.Core.Handler. You can chain this middleware together with other middleware like so:
yesodMiddleware = defaultYesodMiddleware . defaultCsrfMiddleware
or:yesodMiddleware app = defaultYesodMiddleware $ defaultCsrfMiddleware $ app
Since 1.4.14defaultCsrfSetCookieMiddleware :: HandlerFor site res -> HandlerFor site resyesod-core Yesod.Core Calls csrfSetCookieMiddleware with the defaultCsrfCookieName. The cookie's path is set to /, making it valid for your whole website. Since 1.4.14