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. updateHeaders :: HasHeaders a => (Headers -> Headers) -> a -> a

    snap-core Snap.Internal.Http.Types

    Modify the datatype's headers.

  2. pHeaders :: Parser [(ByteString, ByteString)]

    snap-core Snap.Internal.Parsing

    Parser for request headers.

  3. addHeader :: forall (m :: Type -> Type) . Monad m => CI ByteString -> ByteString -> RequestBuilder m ()

    snap-core Snap.Test

    Adds the given header to the request being built. Example:

    ghci> :set -XOverloadedStrings
    ghci> import qualified Data.Map as M
    ghci> :{
    ghci| buildRequest $ do get "/foo/bar" M.empty
    ghci|                   addHeader "Accept" "text/html"
    ghci|                   addHeader "Accept" "text/plain"
    ghci| :}
    GET /foo/bar HTTP/1.1
    accept: text/html,text/plain
    host: localhost
    
    sn="localhost" c=127.0.0.1:60000 s=127.0.0.1:8080 ctx=/ clen=n/a
    

  4. setHeader :: forall (m :: Type -> Type) . Monad m => CI ByteString -> ByteString -> RequestBuilder m ()

    snap-core Snap.Test

    Sets the given header in the request being built, overwriting any header with the same name already present. Example:

    ghci> :set -XOverloadedStrings
    ghci> import qualified Data.Map as M
    ghci> :{
    ghci| buildRequest $ do get "/foo/bar" M.empty
    ghci|                   setHeader "Accept" "text/html"
    ghci|                   setHeader "Accept" "text/plain"
    ghci| :}
    GET /foo/bar HTTP/1.1
    accept: text/plain
    host: localhost
    
    sn="localhost" c=127.0.0.1:60000 s=127.0.0.1:8080 ctx=/ clen=n/a
    

  5. corsAllowedHeaders :: CORSOptions (m :: Type -> Type) -> HashSet ByteString -> m (HashSet ByteString)

    snap-core Snap.Util.CORS

    An action to determine which of the request headers are allowed. This action is supplied the parsed contents of Access-Control-Request-Headers.

  6. corsExposeHeaders :: CORSOptions (m :: Type -> Type) -> m (HashSet (CI ByteString))

    snap-core Snap.Util.CORS

    A list of headers that are exposed to clients. This allows clients to read the values of these headers, if the response includes them.

  7. partHeaders :: PartInfo -> Headers

    snap-core Snap.Util.FileUploads

    Remaining headers associated with this part.

  8. _head :: forall (v :: Type -> Type) (n :: Natural) a f . (Vector v a, Functor f) => (a -> f a) -> Vector v (1 + n) a -> f (Vector v (1 + n) a)

    vector-sized Data.Vector.Generic.Sized

    Lens to access (O(1)) and update (O(n)) the first element of a non-empty vector.

  9. _head :: forall (n :: Natural) a f . (Prim a, Functor f) => (a -> f a) -> Vector (1 + n) a -> f (Vector (1 + n) a)

    vector-sized Data.Vector.Primitive.Sized

    Lens to access (O(1)) and update (O(n)) the first element of a non-empty vector.

  10. _head :: forall (n :: Natural) a f . Functor f => (a -> f a) -> Vector (1 + n) a -> f (Vector (1 + n) a)

    vector-sized Data.Vector.Sized

    Lens to access (O(1)) and update (O(n)) the first element of a non-empty vector.

Page 189 of many | Previous | Next