Tue, 13 Jan 2026 23:31:52 CST | login

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

ID29211
Package Nameghc-http-media
Version0.8.0.0
Release1.oc9
Epoch
DraftFalse
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 byfanjunkong
State complete
Volume DEFAULT
StartedFri, 20 Sep 2024 22:53:05 CST
CompletedFri, 20 Sep 2024 22:55:29 CST
Taskbuild (dist-oc9-epol, /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-oc9-epol
dist-oc9-epol-compose
epol9-test-compose
RPMs
src
ghc-http-media-0.8.0.0-1.oc9.src.rpm (info) (download)
aarch64
ghc-http-media-0.8.0.0-1.oc9.aarch64.rpm (info) (download)
ghc-http-media-devel-0.8.0.0-1.oc9.aarch64.rpm (info) (download)
noarch
ghc-http-media-doc-0.8.0.0-1.oc9.noarch.rpm (info) (download)
x86_64
ghc-http-media-0.8.0.0-1.oc9.x86_64.rpm (info) (download)
ghc-http-media-devel-0.8.0.0-1.oc9.x86_64.rpm (info) (download)
Logs
x86_64
root.log
build.log
installed_pkgs.log
state.log
hw_info.log
mock_output.log
noarch_rpmdiff.json
aarch64
state.log
installed_pkgs.log
build.log
root.log
hw_info.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