Thu, 22 Jan 2026 10:04:04 CST | login

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

ID14499
Package Nameghc-http-media
Version0.8.0.0
Release1.ocs23
Epoch
Sourcegit+https://gitee.com/opencloudos-stream/ghc-http-media.git?.#11d5e9f1d8c0920d703ee51953f5aea0d391143d
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 bybbrucezhang
State complete
Volume DEFAULT
StartedFri, 09 Aug 2024 10:36:02 CST
CompletedFri, 09 Aug 2024 10:39:50 CST
Taskbuild (dist-ocs23-epol9, /opencloudos-stream/ghc-http-media.git:.:origin/master)
Extra{'source': {'original_url': 'git+https://gitee.com/opencloudos-stream/ghc-http-media.git?.#origin/master'}}
Tags
dist-ocs23
dist-ocs23-epol9
epol9-test-compose
RPMs
src
ghc-http-media-0.8.0.0-1.ocs23.src.rpm (info) (download)
aarch64
ghc-http-media-0.8.0.0-1.ocs23.aarch64.rpm (info) (download)
ghc-http-media-devel-0.8.0.0-1.ocs23.aarch64.rpm (info) (download)
noarch
ghc-http-media-doc-0.8.0.0-1.ocs23.noarch.rpm (info) (download)
x86_64
ghc-http-media-0.8.0.0-1.ocs23.x86_64.rpm (info) (download)
ghc-http-media-devel-0.8.0.0-1.ocs23.x86_64.rpm (info) (download)
Logs
x86_64
installed_pkgs.log
build.log
state.log
hw_info.log
root.log
mock_output.log
noarch_rpmdiff.json
aarch64
root.log
state.log
installed_pkgs.log
hw_info.log
build.log
mock_output.log
noarch_rpmdiff.json
Changelog * Thu Aug 08 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 0.8.0.0-1 - initial build