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-3.7 RPM for aarch64

From OpenSuSE Ports Tumbleweed for aarch64

Name: ghc-http-media Distribution: openSUSE Tumbleweed
Version: 0.8.1.1 Vendor: openSUSE
Release: 3.7 Build date: Fri May 17 07:19:14 2024
Group: Unspecified Build host: reproducible
Size: 345910 Source RPM: ghc-http-media-0.8.1.1-3.7.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

* Fri May 17 2024 Peter Simons <psimons@suse.com>
  - Update http-media to version 0.8.1.1 revision 2.
    Upstream has revised the Cabal build instructions on Hackage.
* Wed Oct 25 2023 Peter Simons <psimons@suse.com>
  - Update http-media to version 0.8.1.1 revision 1.
    Upstream has revised the Cabal build instructions on Hackage.
* Sun Sep 10 2023 Peter Simons <psimons@suse.com>
  - Update http-media to version 0.8.1.1.
    Upstream has edited the change log file since the last release in
    a non-trivial way, i.e. they did more than just add a new entry
    at the top. You can review the file at:
    http://hackage.haskell.org/package/http-media-0.8.1.1/src/CHANGES.md
* Sat Sep 02 2023 Peter Simons <psimons@suse.com>
  - Update http-media to version 0.8.1.0.
    - [ Version 0.8.1.0](https://github.com/zmthy/http-media/releases/tag/v0.8.1.0)
      Exposed `qualityData` accessor.
      Added `isAcceptable` to allow filtering out unacceptable items.
* Thu Mar 30 2023 Peter Simons <psimons@suse.com>
  - Updated spec file to conform with ghc-rpm-macros-2.5.2.
* Thu Mar 30 2023 Peter Simons <psimons@suse.com>
  - Update http-media to version 0.8.0.0 revision 8.
    Upstream has revised the Cabal build instructions on Hackage.
* Wed Sep 07 2022 Peter Simons <psimons@suse.com>
  - Update http-media to version 0.8.0.0 revision 7.
    Upstream has revised the Cabal build instructions on Hackage.
* 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.

Files

/usr/lib64/ghc-9.8.3/lib/libHShttp-media-0.8.1.1-1UULXNqcPQ188KGo1uic2W-ghc9.8.3.so
/usr/share/licenses/ghc-http-media
/usr/share/licenses/ghc-http-media/LICENSE


Generated by rpm2html 1.8.1

Fabrice Bellet, Thu Nov 14 00:43:26 2024