Hoogle Search
Within LTS Haskell 24.5 (ghc-9.10.2)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
headerFreeParamList :: (HasCallStack, MonadIO m) => Map Text Text -> m ()gi-soup3 GI.Soup.Functions Frees paramList.
headerGStringAppendParam :: (HasCallStack, MonadIO m) => String -> Text -> Maybe Text -> m ()gi-soup3 GI.Soup.Functions Appends something like name=value to string, taking care to quote value if needed, and if so, to escape any quotes or backslashes in value. Alternatively, if value is a non-ASCII UTF-8 string, it will be appended using RFC5987 syntax. Although in theory this is supposed to work anywhere in HTTP that uses this style of parameter, in reality, it can only be used portably with the Content-Disposition "filename" parameter. If value is Nothing, this will just append name to string.
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].