Index index by Group index by Distribution index by Vendor index by creation date index by Name Mirrors Help Search

ghc-http-media-0.8.1.1-150500.11.3.2 RPM for ppc64le

From OpenSuSE Leap 15.6 for ppc64le

Name: ghc-http-media Distribution: SUSE Linux Enterprise 15
Version: 0.8.1.1 Vendor: SUSE LLC <https://www.suse.com/>
Release: 150500.11.3.2 Build date: Tue Feb 6 15:10:10 2024
Group: Unspecified Build host: nebbiolo
Size: 609190 Source RPM: ghc-http-media-0.8.1.1-150500.11.3.2.src.rpm
Packager: https://www.suse.com/
Url: https://hackage.haskell.org/package/http-media
Summary: Processing HTTP Content-Type and Accept headers
This library is intended to be a comprehensive solution to parsing and
selecting quality-indexed values in HTTP headers. It is capable of parsing both
media types and language parameters from the Accept and Content header
families, and can be extended to match against other accept headers as well.
Selecting the appropriate header value is achieved by comparing a list of
server options against the quality-indexed values supplied by the client.

In the following example, the Accept header is parsed and then matched against
a list of server options to serve the appropriate media using 'mapAcceptMedia':

> getHeader >>= maybe send406Error sendResourceWith . mapAcceptMedia > [
("text/html", asHtml) > , ("application/json", asJson) > ]

Similarly, the Content-Type header can be used to produce a parser for request
bodies based on the given content type with 'mapContentMedia':

> getContentType >>= maybe send415Error readRequestBodyWith .
mapContentMedia > [ ("application/json", parseJson) > , ("text/plain",
parseText) > ]

The API is agnostic to your choice of server.

Provides

Requires

License

MIT

Changelog

* Wed Oct 25 2023 psimons@suse.com
  - Add http-media at version 0.8.1.1 revision 1.

Files

/usr/lib64/ghc-8.10.7/http-media-0.8.1.1
/usr/lib64/ghc-8.10.7/http-media-0.8.1.1/libHShttp-media-0.8.1.1-cpbSI9w8XhGnUfENdzMzC-ghc8.10.7.so
/usr/share/licenses/ghc-http-media
/usr/share/licenses/ghc-http-media/LICENSE


Generated by rpm2html 1.8.1

Fabrice Bellet, Fri May 3 23:24:22 2024