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.
updateHeaders :: HasHeaders a => (Headers -> Headers) -> a -> asnap-core Snap.Internal.Http.Types Modify the datatype's headers.
pHeaders :: Parser [(ByteString, ByteString)]snap-core Snap.Internal.Parsing Parser for request headers.
-
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
-
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
-
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.
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.
partHeaders :: PartInfo -> Headerssnap-core Snap.Util.FileUploads Remaining headers associated with this part.
-
vector-sized Data.Vector.Generic.Sized Lens to access (O(1)) and update (O(n)) the first element of a non-empty vector.
-
vector-sized Data.Vector.Primitive.Sized Lens to access (O(1)) and update (O(n)) the first element of a non-empty vector.
-
vector-sized Data.Vector.Sized Lens to access (O(1)) and update (O(n)) the first element of a non-empty vector.