Mon, 16 Dec 2024 09:53:35 UTC | login

Information for build ghc-http-media-0.8.0.0-1.fc33

ID137644
Package Nameghc-http-media
Version0.8.0.0
Release1.fc33
Epoch
Sourcegit+https://src.fedoraproject.org/rpms/ghc-http-media.git#f8edf23dbbe0b9f8245fc89459f3763c325a66ae
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
StartedSun, 19 Apr 2020 18:33:45 UTC
CompletedSun, 19 Apr 2020 19:19:58 UTC
Taskbuild (f33, /rpms/ghc-http-media.git:f8edf23dbbe0b9f8245fc89459f3763c325a66ae)
Extra{'source': {'original_url': 'git+https://src.fedoraproject.org/rpms/ghc-http-media.git#f8edf23dbbe0b9f8245fc89459f3763c325a66ae'}}
Tags
f33
RPMs
src
ghc-http-media-0.8.0.0-1.fc33.src.rpm (info) (download)
noarch
ghc-http-media-doc-0.8.0.0-1.fc33.noarch.rpm (info) (download)
riscv64
ghc-http-media-0.8.0.0-1.fc33.riscv64.rpm (info) (download)
ghc-http-media-devel-0.8.0.0-1.fc33.riscv64.rpm (info) (download)
ghc-http-media-prof-0.8.0.0-1.fc33.riscv64.rpm (info) (download)
Logs
riscv64
build.log
hw_info.log
mock_output.log
noarch_rpmdiff.json
root.log
state.log
Changelog * Fri Feb 14 2020 Jens Petersen <petersen@redhat.com> - 0.8.0.0-1 - update to 0.8.0.0 * Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Fri Aug 02 2019 Jens Petersen <petersen@redhat.com> - 0.7.1.3-3 - add doc and prof subpackages (cabal-rpm-1.0.0) * Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Feb 21 2019 Jens Petersen <petersen@redhat.com> - 0.7.1.3-1 - update to 0.7.1.3 * Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.7.1.2-3 - refresh to cabal-rpm-0.13 * Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Sun Jul 22 2018 Jens Petersen <petersen@redhat.com> - 0.7.1.2-1 - update to 0.7.1.2 * Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild