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-3.3 RPM for armv7hl

From OpenSuSE Ports Tumbleweed for armv7hl

Name: ghc-http-media Distribution: openSUSE Tumbleweed
Version: 0.8.0.0 Vendor: openSUSE
Release: 3.3 Build date: Tue Jun 1 13:12:42 2021
Group: Unspecified Build host: obs-arm-5
Size: 365586 Source RPM: ghc-http-media-0.8.0.0-3.3.src.rpm
Packager: http://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 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/lib/ghc-8.10.4/http-media-0.8.0.0
/usr/lib/ghc-8.10.4/http-media-0.8.0.0/libHShttp-media-0.8.0.0-S7iRs5NWPNHrpaoYQKU9H-ghc8.10.4.so
/usr/share/licenses/ghc-http-media
/usr/share/licenses/ghc-http-media/LICENSE


Generated by rpm2html 1.8.1

Fabrice Bellet, Sat Nov 16 01:07:39 2024