Mon, 12 Jan 2026 15:48:37 CST | login

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

ID36090
Package Nameghc-http-media
Version0.8.0.0
Release2.oc9
Epoch
DraftFalse
Sourcegit+https://gitee.com/opencloudos-stream/ghc-http-media.git?.#ba27d303af5081c1b801fc72fc35b37b4f4fe0dc
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 failed
Volume DEFAULT
StartedTue, 30 Sep 2025 10:08:08 CST
CompletedTue, 30 Sep 2025 10:10:33 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 No tags
RPMs No RPMs
Changelog * Thu Jun 05 2025 bbrucezhang <bbrucezhang@tencent.com> - 0.8.0.0-2 - Rebuilt for loongarch64 * Thu Aug 08 2024 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 0.8.0.0-1 - initial build