Hoogle Search
Within LTS Haskell 24.41 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
headerGStringAppendParamQuoted :: (HasCallStack, MonadIO m) => String -> Text -> Text -> m ()gi-soup3 GI.Soup.Functions Appends something like name="value" to string, taking care to escape any quotes or backslashes in value. If value is (non-ASCII) UTF-8, this will instead use RFC 5987 encoding, just like [funcheaderGStringAppendParam].
headerParseList :: (HasCallStack, MonadIO m) => Text -> m [Text]gi-soup3 GI.Soup.Functions Parses a header whose content is described by RFC2616 as #something. "something" does not itself contain commas, except as part of quoted-strings.
headerParseParamList :: (HasCallStack, MonadIO m) => Text -> m (Map Text Text)gi-soup3 GI.Soup.Functions Parses a header which is a comma-delimited list of something like: token [ "=" ( token | quoted-string ) ]. Tokens that don't have an associated value will still be added to the resulting hash table, but with a Nothing value. This also handles RFC5987 encoding (which in HTTP is mostly used for giving UTF8-encoded filenames in the Content-Disposition header).
headerParseParamListStrict :: (HasCallStack, MonadIO m) => Text -> m (Maybe (Map Text Text))gi-soup3 GI.Soup.Functions A strict version of [funcheaderParseParamList] that bails out if there are duplicate parameters. Note that this function will treat RFC5987-encoded parameters as duplicated if an ASCII version is also present. For header fields that might contain RFC5987-encoded parameters, use [funcheaderParseParamList] instead.
headerParseQualityList :: (HasCallStack, MonadIO m) => Text -> m ([Text], [Text])gi-soup3 GI.Soup.Functions Parses a header whose content is a list of items with optional "qvalue"s (eg, Accept, Accept-Charset, Accept-Encoding, Accept-Language, TE). If unacceptable is not Nothing, then on return, it will contain the items with qvalue 0. Either way, those items will be removed from the main list.
headerParseSemiParamList :: (HasCallStack, MonadIO m) => Text -> m (Map Text Text)gi-soup3 GI.Soup.Functions Parses a header which is a semicolon-delimited list of something like: token [ "=" ( token | quoted-string ) ]. Tokens that don't have an associated value will still be added to the resulting hash table, but with a Nothing value. This also handles RFC5987 encoding (which in HTTP is mostly used for giving UTF8-encoded filenames in the Content-Disposition header).
headerParseSemiParamListStrict :: (HasCallStack, MonadIO m) => Text -> m (Maybe (Map Text Text))gi-soup3 GI.Soup.Functions A strict version of [funcheaderParseSemiParamList] that bails out if there are duplicate parameters. Note that this function will treat RFC5987-encoded parameters as duplicated if an ASCII version is also present. For header fields that might contain RFC5987-encoded parameters, use [funcheaderParseSemiParamList] instead.
headersParse :: (HasCallStack, MonadIO m) => Text -> Int32 -> MessageHeaders -> m Boolgi-soup3 GI.Soup.Functions Parses the headers of an HTTP request or response in str and stores the results in dest. Beware that dest may be modified even on failure. This is a low-level method; normally you would use [funcheadersParseRequest] or [funcheadersParseResponse].
-
gi-soup3 GI.Soup.Functions Parses the headers of an HTTP request in str and stores the results in reqMethod, reqPath, ver, and reqHeaders. Beware that reqHeaders may be modified even on failure.
-
gi-soup3 GI.Soup.Functions Parses the headers of an HTTP response in str and stores the results in ver, statusCode, reasonPhrase, and headers. Beware that headers may be modified even on failure.