Sat, 05 Oct 2024 08:02:54 UTC | login

Information for RPM ghc-http-media-0.8.0.0-9.fc37.src.rpm

ID864183
Nameghc-http-media
Version0.8.0.0
Release9.fc37
Epoch
Archsrc
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.
Build Time2022-10-28 20:57:15 GMT
Size36.19 KB
7d313e419b1a0bae781f94662bdec56c
LicenseMIT
Buildrootf37-build-662703-73811
Provides
ghc-http-media = 0.8.0.0-9.fc37
ghc-http-media-debuginfo = 0.8.0.0-9.fc37
ghc-http-media-debugsource = 0.8.0.0-9.fc37
ghc-http-media-devel = 0.8.0.0-9.fc37
Obsoletes No Obsoletes
Conflicts No Conflicts
Requires
ghc-Cabal-devel
ghc-base-prof
ghc-bytestring-prof
ghc-case-insensitive-prof
ghc-containers-prof
ghc-rpm-macros
ghc-utf8-string-prof
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
Recommends No Recommends
Suggests No Suggests
Supplements No Supplements
Enhances No Enhances
Files
1 through 3 of 3
Name ascending sort Size
ghc-http-media.spec5.91 KB
http-media-0.8.0.0.cabal4.14 KB
http-media-0.8.0.0.tar.gz18.45 KB
Component of No Buildroots