Hoogle Search

Within LTS Haskell 24.58 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. setHeader :: forall (m :: Type -> Type) . MonadIO m => Text -> Text -> ActionT m ()

    scotty Web.Scotty.Trans

    Set one of the response headers. Will override any previously set value for that header. Header names are case-insensitive.

  2. addHeader :: forall (m :: Type -> Type) . MonadIO m => Text -> Text -> ActionT m ()

    scotty Web.Scotty.Trans.Strict

    Add to the response headers. Header names are case-insensitive.

  3. getResponseHeaders :: forall (m :: Type -> Type) . MonadIO m => ActionT m ResponseHeaders

    scotty Web.Scotty.Trans.Strict

    Access the HTTP headers of the Response SINCE 0.21

  4. setHeader :: forall (m :: Type -> Type) . MonadIO m => Text -> Text -> ActionT m ()

    scotty Web.Scotty.Trans.Strict

    Set one of the response headers. Will override any previously set value for that header. Header names are case-insensitive.

  5. rLookahead :: Rule -> !Bool

    skylighting-core Skylighting.Types

    No documentation available.

  6. FromHeader :: IPAddrSource

    wai-logger Network.Wai.Logger

    From X-Real-IP or X-Forwarded-For in the HTTP header. This picks either X-Real-IP or X-Forwarded-For depending on which of these headers comes first in the ordered list of request headers. If the X-Forwarded-For header is picked, the value will be assumed to be a comma-separated list of IP addresses. The value will be parsed, and the left-most IP address will be used (which is mostly likely to be the actual client IP address).

  7. FromHeaderCustom :: [HeaderName] -> IPAddrSource

    wai-logger Network.Wai.Logger

    From a custom HTTP header, useful in proxied environment. The header value will be assumed to be a comma-separated list of IP addresses. The value will be parsed, and the left-most IP address will be used (which is mostly likely to be the actual client IP address). Note that this still works as expected for a single IP address.

  8. addBasicAuthHeader :: CI ByteString -> CI ByteString -> RequestBuilder site ()

    yesod-test Yesod.Test

    Adds a header for HTTP Basic Authentication to the request

    Examples

    request $ do
    addBasicAuthHeader "Aladdin" "OpenSesame"
    

  9. addRequestHeader :: Header -> RequestBuilder site ()

    yesod-test Yesod.Test

    Adds the given header to the request; see Network.HTTP.Types.Header for creating Headers.

    Examples

    import Network.HTTP.Types.Header
    request $ do
    addRequestHeader (hUserAgent, "Chrome/41.0.2228.0")
    

  10. addTokenFromCookieNamedToHeaderNamed :: HasCallStack => ByteString -> CI ByteString -> RequestBuilder site ()

    yesod-test Yesod.Test

    Looks up the CSRF token stored in the cookie with the given name and adds it to the request headers. An error is thrown if the cookie can't be found. Use this function if you're using the CSRF middleware from Yesod.Core and have customized the cookie or header name. See Yesod.Core.Handler for details on this approach to CSRF protection.

    Examples

    import Data.CaseInsensitive (CI)
    request $ do
    addTokenFromCookieNamedToHeaderNamed "cookieName" (CI "headerName")
    
    Since 1.4.3.2

Page 195 of many | Previous | Next