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-21.fc40 RPM for aarch64

From Fedora 40 for aarch64 / g

Name: ghc-http-media Distribution: Fedora Project
Version: 0.8.0.0 Vendor: Fedora Project
Release: 21.fc40 Build date: Wed Jan 24 15:11:45 2024
Group: Unspecified Build host: buildvm-a64-28.iad2.fedoraproject.org
Size: 347035 Source RPM: ghc-http-media-0.8.0.0-21.fc40.src.rpm
Packager: Fedora Project
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 Jan 24 2024 Fedora Release Engineering <[email protected]> - 0.8.0.0-21
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Fri Jan 19 2024 Fedora Release Engineering <[email protected]> - 0.8.0.0-20
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
* Sun Jul 23 2023 Jens Petersen <[email protected]> - 0.8.0.0-19
  - revised .cabal file
* Wed Jul 19 2023 Fedora Release Engineering <[email protected]> - 0.8.0.0-18
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Thu Feb 16 2023 Jens Petersen <[email protected]> - 0.8.0.0-10
  - refresh to cabal-rpm-2.1.0 with SPDX migration
* Thu Jul 21 2022 Fedora Release Engineering <[email protected]> - 0.8.0.0-9
  - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Fri Jun 17 2022 Jens Petersen <[email protected]> - 0.8.0.0-8
  - rebuild

Files

/usr/lib/.build-id
/usr/lib/.build-id/22
/usr/lib/.build-id/22/925953318a40de53fb6f21579b6fa467d5f273
/usr/lib64/ghc-9.4.5/lib/libHShttp-media-0.8.0.0-2t7LizYMGYffdXZ0A5MgY-ghc9.4.5.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 23:47:10 2024