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.
assertHeader :: HasCallStack => CI ByteString -> ByteString -> YesodExample site ()yesod-test Yesod.Test Assert the given header key/value pair was returned.
Examples
{-# LANGUAGE OverloadedStrings #-} get HomeR assertHeader "key" "value"import qualified Data.CaseInsensitive as CI import qualified Data.ByteString.Char8 as BS8 getHomeR assertHeader (CI.mk (BS8.pack "key")) (BS8.pack "value")
assertNoHeader :: HasCallStack => CI ByteString -> YesodExample site ()yesod-test Yesod.Test Assert the given header was not included in the response.
Examples
{-# LANGUAGE OverloadedStrings #-} get HomeR assertNoHeader "key"import qualified Data.CaseInsensitive as CI import qualified Data.ByteString.Char8 as BS8 getHomeR assertNoHeader (CI.mk (BS8.pack "key"))
contentTypeHeaderIsUtf8 :: ByteString -> Boolyesod-test Yesod.Test.Internal Helper function to determine if we can print a body as plain text, for debugging purposes.
-
asn1-types Data.ASN1.Types.Lowlevel ASN1 Header with the class, tag, constructed flag and length.
ASN1Header :: ASN1Class -> ASN1Tag -> Bool -> ASN1Length -> ASN1Headerasn1-types Data.ASN1.Types.Lowlevel No documentation available.
-
byteslice Data.Bytes Access the first byte. The given Bytes must be non-empty.
hLookAhead :: Handle -> IO Charghc-internal GHC.Internal.IO.Handle Computation hLookAhead returns the next character from the handle without removing it from the input buffer, blocking until a character is available. This operation may fail with:
- isEOFError if the end of file has been reached.
hLookAhead_ :: Handle__ -> IO Charghc-internal GHC.Internal.IO.Handle.Internals No documentation available.
hLookAhead :: Handle -> IO Charghc-internal GHC.Internal.System.IO Computation hLookAhead returns the next character from the handle without removing it from the input buffer, blocking until a character is available. This operation may fail with:
- isEOFError if the end of file has been reached.
unsafeHead :: Source r e => Vector r e -> emassiv Data.Massiv.Array.Unsafe No documentation available.