Hoogle Search
Within LTS Haskell 24.33 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
setHeader :: MonadHandler m => Text -> Text -> m ()yesod-core Yesod.Core.Handler Deprecated: Please use addHeader instead
setLanguage :: MonadHandler m => Text -> m ()yesod-core Yesod.Core.Handler Set the language in the user session. Will show up in languages on the next request.
setMessage :: MonadHandler m => Html -> m ()yesod-core Yesod.Core.Handler Calls addMessage with an empty status
setMessageI :: (MonadHandler m, RenderMessage (HandlerSite m) msg) => msg -> m ()yesod-core Yesod.Core.Handler Calls addMessageI with an empty status
setSession :: MonadHandler m => Text -> Text -> m ()yesod-core Yesod.Core.Handler Set a variable in the user's session. The session is handled by the clientsession package: it sets an encrypted and hashed cookie on the client. This ensures that all data is secure and not tampered with.
setSessionBS :: MonadHandler m => Text -> ByteString -> m ()yesod-core Yesod.Core.Handler Same as setSession, but uses binary data for the value.
setUltDest :: (MonadHandler m, RedirectUrl (HandlerSite m) url) => url -> m ()yesod-core Yesod.Core.Handler Sets the ultimate destination variable to the given route. An ultimate destination is stored in the user session and can be loaded later by redirectUltDest.
setUltDestCurrent :: MonadHandler m => m ()yesod-core Yesod.Core.Handler Same as setUltDest, but uses the current page. If this is a 404 handler, there is no current page, and then this call does nothing.
setUltDestReferer :: MonadHandler m => m ()yesod-core Yesod.Core.Handler Sets the ultimate destination to the referer request header, if present. This function will not overwrite an existing ultdest.
setWeakEtag :: MonadHandler m => Text -> m ()yesod-core Yesod.Core.Handler Check the if-none-match header and, if it matches the given value, return a 304 not modified response. Otherwise, set the etag header to the given value. A weak etag is only expected to be semantically identical to the prior content, but doesn't have to be byte-for-byte identical. Therefore it can be useful for dynamically generated content that may be difficult to perform bytewise hashing upon. Note that it is the responsibility of the caller to ensure that the provided value is a valid etag value, no sanity checking is performed by this function.