Hoogle Search

Within LTS Haskell 24.69 (ghc-9.10.3)

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

  1. setHeaderUnsafe :: HasHeaders r => ByteString -> HeaderPair -> r -> r

    happstack-server Happstack.Server.Types

    Sets the key to the HeaderPair. This is the only way to associate a key with multiple values via the setHeader* functions. Does not force the key to be in lowercase or guarantee that the given key and the key in the HeaderPair will match.

  2. gxHead :: GenericXMLString s => s -> Char

    hexpat Text.XML.Expat.Annotated

    No documentation available.

  3. gxHead :: GenericXMLString s => s -> Char

    hexpat Text.XML.Expat.Extended

    No documentation available.

  4. xmlHeader :: ByteString

    hexpat Text.XML.Expat.Format

    The standard XML header with UTF-8 encoding.

  5. gxHead :: GenericXMLString s => s -> Char

    hexpat Text.XML.Expat.SAX

    No documentation available.

  6. gxHead :: GenericXMLString s => s -> Char

    hexpat Text.XML.Expat.Tree

    No documentation available.

  7. obs_header :: forall s (m :: Type -> Type) u a . Stream s m Char => String -> ParsecT s u m a -> ParsecT s u m a

    hsemail Text.Parsec.Rfc2822

    Like header, but allows the obsolete white-space rules.

  8. buildHeaders :: [(ByteString, ByteString)] -> Headers

    http-common Network.Http.Types

    Given a list of field-name,field-value pairs, construct a Headers map.

  9. emptyHeaders :: Headers

    http-common Network.Http.Types

    No documentation available.

  10. getHeader :: Response -> ByteString -> Maybe ByteString

    http-common Network.Http.Types

    Lookup a header in the response. HTTP header field names are case-insensitive, so you can specify the name to lookup however you like. If the header is not present Nothing will be returned.

    let n = case getHeader p "Content-Length" of
    Just x' -> read x' :: Int
    Nothing -> 0
    
    which of course is essentially what goes on inside the client library when it receives a response from the server and has to figure out how many bytes to read. There is a fair bit of complexity in some of the other HTTP response fields, so there are a number of specialized functions for reading those values where we've found them useful.

Page 236 of many | Previous | Next