Thu, 14 Nov 2024 05:08:09 UTC | login

Information for build ghc-http-media-0.8.1.1-1.fc41

ID336393
Package Nameghc-http-media
Version0.8.1.1
Release1.fc41
Epoch
Sourcegit+https://src.fedoraproject.org/rpms/ghc-http-media.git#f97443ce751d9400fa98c8ae1b9816a8ee412306
SummaryProcessing HTTP Content-Type and Accept headers
DescriptionThis 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.
Built bydavidlt
State complete
Volume DEFAULT
StartedMon, 12 Aug 2024 12:29:10 UTC
CompletedMon, 12 Aug 2024 12:52:34 UTC
Taskbuild (f41, /rpms/ghc-http-media.git:f97443ce751d9400fa98c8ae1b9816a8ee412306)
Extra{'source': {'original_url': 'git+https://src.fedoraproject.org/rpms/ghc-http-media.git#f97443ce751d9400fa98c8ae1b9816a8ee412306'}}
Tags
f41
RPMs
src
ghc-http-media-0.8.1.1-1.fc41.src.rpm (info) (download)
noarch
ghc-http-media-doc-0.8.1.1-1.fc41.noarch.rpm (info) (download)
riscv64
ghc-http-media-0.8.1.1-1.fc41.riscv64.rpm (info) (download)
ghc-http-media-devel-0.8.1.1-1.fc41.riscv64.rpm (info) (download)
ghc-http-media-prof-0.8.1.1-1.fc41.riscv64.rpm (info) (download)
Logs
riscv64
hw_info.log
state.log
build.log
root.log
mock_output.log
noarch_rpmdiff.json
Changelog * Sat Aug 03 2024 Jens Petersen <petersen@redhat.com> - 0.8.1.1-1 - https://hackage.haskell.org/package/http-media-0.8.1.1/changelog * Thu Jul 18 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon Jul 15 2024 Jens Petersen <petersen@redhat.com> - 0.8.0.0-22 - refresh to cabal-rpm-2.2.1 * Wed Jan 24 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Fri Jan 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Sun Jul 23 2023 Jens Petersen <petersen@redhat.com> - 0.8.0.0-19 - revised .cabal file * Wed Jul 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-18 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild * Thu Feb 16 2023 Jens Petersen <petersen@redhat.com> - 0.8.0.0-10 - refresh to cabal-rpm-2.1.0 with SPDX migration