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.0.0-bp155.3.16 RPM for ppc64le

From OpenSuSE Leap 15.5 for ppc64le

Name: ghc-http-media Distribution: SUSE Linux Enterprise 15 SP5
Version: 0.8.0.0 Vendor: openSUSE
Release: bp155.3.16 Build date: Mon May 22 12:06:34 2023
Group: Unspecified Build host: obs-power8-05
Size: 609734 Source RPM: ghc-http-media-0.8.0.0-bp155.3.16.src.rpm
Packager: https://bugs.opensuse.org
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

* Sun Dec 05 2021 Peter Simons <psimons@suse.com>
  - Update http-media to version 0.8.0.0 revision 6.
    Upstream has revised the Cabal build instructions on Hackage.
* Sun Apr 18 2021 psimons@suse.com
  - Update http-media to version 0.8.0.0 revision 5.
    Upstream has revised the Cabal build instructions on Hackage.
* Tue Jan 19 2021 psimons@suse.com
  - Update http-media to version 0.8.0.0 revision 4.
    Upstream has revised the Cabal build instructions on Hackage.
* Thu Dec 17 2020 Ondřej Súkup <mimi.vx@gmail.com>
  - disable %{ix86} build
* Wed Dec 09 2020 psimons@suse.com
  - Add http-media at version 0.8.0.0 revision 3.

Files

/usr/lib64/ghc-8.10.7/http-media-0.8.0.0
/usr/lib64/ghc-8.10.7/http-media-0.8.0.0/libHShttp-media-0.8.0.0-1SQFY0RHxxsLPoI35zQyCf-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, Tue Jul 9 17:57:49 2024