Sat, 06 Jul 2024 15:14:17 UTC | login

Information for build ghc-http-media-0.8.0.0-9.fc37

ID215466
Package Nameghc-http-media
Version0.8.0.0
Release9.fc37
Epoch
Sourcegit+https://src.fedoraproject.org/rpms/ghc-http-media.git#cdd7ed2adc8b0de85fb2811d963fe2b5d466a48b
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
StartedFri, 28 Oct 2022 19:37:04 UTC
CompletedFri, 28 Oct 2022 21:14:44 UTC
Taskbuild (f37, /rpms/ghc-http-media.git:cdd7ed2adc8b0de85fb2811d963fe2b5d466a48b)
Extra{'source': {'original_url': 'git+https://src.fedoraproject.org/rpms/ghc-http-media.git#cdd7ed2adc8b0de85fb2811d963fe2b5d466a48b'}}
Tags
f37
f38
RPMs
src
ghc-http-media-0.8.0.0-9.fc37.src.rpm (info) (download)
noarch
ghc-http-media-doc-0.8.0.0-9.fc37.noarch.rpm (info) (download)
riscv64
ghc-http-media-0.8.0.0-9.fc37.riscv64.rpm (info) (download)
ghc-http-media-devel-0.8.0.0-9.fc37.riscv64.rpm (info) (download)
ghc-http-media-prof-0.8.0.0-9.fc37.riscv64.rpm (info) (download)
Logs
riscv64
build.log
hw_info.log
mock_output.log
noarch_rpmdiff.json
root.log
state.log
Changelog * Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Fri Jun 17 2022 Jens Petersen <petersen@redhat.com> - 0.8.0.0-8 - rebuild * Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Fri Aug 06 2021 Jens Petersen <petersen@redhat.com> - 0.8.0.0-6 - rebuild * Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild