Package: ghc-http-media (0.8.1.1-6.fc43)
Verarbeitung von HTTP Content-Type- und Accept-Headern
Diese Bibliothek soll eine umfassende Lösung zum Parsen und Auswählen qualitätsindizierter Werte in HTTP-Headern sein. Sie kann sowohl Medientypen als auch Sprachparameter aus den Accept- und Content-Header- Familien parsen und kann erweitert werden, um auch gegen andere Accept-Header zu matchen. Die Auswahl des geeigneten Header-Werts erfolgt durch Vergleich einer Liste von Serveroptionen mit den vom Client gelieferten qualitätsindizierten Werten. Im folgenden Beispiel wird der Accept-Header geparst und dann gegen eine Liste von Serveroptionen abgeglichen, um das passende Medium mit 'mapAcceptMedia' auszuliefern: > getHeader >>= maybe send406Error sendResourceWith . mapAcceptMedia > [ ("text/html", asHtml) > , ("application/json", asJson) > ] Ebenso kann der Content-Type-Header verwendet werden, um einen Parser für Anfrage- Rümpfe basierend auf dem gegebenen Content-Type mit 'mapContentMedia' zu erzeugen: > getContentType >>= maybe send415Error readRequestBodyWith . mapContentMedia > [ ("application/json", parseJson) > , ("text/plain", parseText) > ] Die API ist unabhängig von Ihrer Wahl des Servers.
Package information
- Homepage
- [https://hackage.haskell.org/package/http-media]
- License
- MIT
- Downstream-Paketbetreuer
- dsheaObserved Nov 20, 2026 [source]
- Quellpaket
- [ghc-http-media]
- Software project
- [ghc-http-media]
Versions and downloads for ghc-http-media
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.8.1.1-6.fc4343 / everything | aarch64Fedora 43 · Everything · aarch64 | 58 KiB | 275 KiB | list of files | ghc-http-media-0.8.1.1-6.fc43.aarch64.rpm |
| 0.8.1.1-6.fc4343 / everything | x86_64Fedora 43 · Everything · x86_64 | 57 KiB | 270 KiB | list of files | ghc-http-media-0.8.1.1-6.fc43.x86_64.rpm |
About these downloads
Jede Zeile ist Paketindex-Metadaten für eine Version, Architektur, Suite und ein Repository. Namen, URLs und Größen stammen aus der Quelle; ein Link ist ein veränderbarer Abrufort, kein Weitergabanspruch von OpenFactory.
Other packages built from ghc-http-media
- ghc-http-media-devel
Haskell http-media Bibliotheks-Entwicklungsdateien
- ghc-http-media-doc
Dokumentation der Haskell-Bibliothek http-media
- ghc-http-media-prof
Profiling-Bibliothek Haskell http-media
Dependencies and recommendations for ghc-http-media
View 25 package relationships
dep: libHSarray-0.5.8.0-dd30-ghc9.8.4.so()(64bit)
Package not available
dep: libHSbase-4.19.2.0-5123-ghc9.8.4.so()(64bit)
Package not available
dep: libHSbinary-0.8.9.1-021f-ghc9.8.4.so()(64bit)
Package not available
dep: libHSbytestring-0.12.1.0-b9d4-ghc9.8.4.so()(64bit)
Package not available
dep: libHScase-insensitive-1.2.1.0-1m62GcFVLp8Dbj4UhUvMlr-ghc9.8.4.so()(64bit)
Package not available
dep: libHScontainers-0.6.8-5cca-ghc9.8.4.so()(64bit)
Package not available
dep: libHSdeepseq-1.5.1.0-6e21-ghc9.8.4.so()(64bit)
Package not available
dep: libHSexceptions-0.10.7-8096-ghc9.8.4.so()(64bit)
Package not available
dep: libHSfilepath-1.4.301.0-aa4a-ghc9.8.4.so()(64bit)
Package not available
dep: libHSghc-bignum-1.3-a3fd-ghc9.8.4.so()(64bit)
Package not available
dep: libHSghc-boot-th-9.8.4-2286-ghc9.8.4.so()(64bit)
Package not available
dep: libHSghc-prim-0.11.0-0834-ghc9.8.4.so()(64bit)
Package not available
dep: libHShashable-1.4.7.0-EXgORMMsfPuGP4TS82KHlL-ghc9.8.4.so()(64bit)
Package not available
dep: libHSmtl-2.3.1-530a-ghc9.8.4.so()(64bit)
Package not available
dep: libHSos-string-2.0.7-BqJOnlcKgwi4lkKE13PiDG-ghc9.8.4.so()(64bit)
Package not available
dep: libHSpretty-1.1.3.6-d1ee-ghc9.8.4.so()(64bit)
Package not available
dep: libHSstm-2.5.3.1-fabd-ghc9.8.4.so()(64bit)
Package not available
dep: libHStemplate-haskell-2.21.0.0-e252-ghc9.8.4.so()(64bit)
Package not available
dep: libHStext-2.1.1-907f-ghc9.8.4.so()(64bit)
Package not available
dep: libHStransformers-0.6.1.0-20df-ghc9.8.4.so()(64bit)
Package not available
dep: libHSutf8-string-1.0.2-2vttzOdDSi51TwzbFtLqB-ghc9.8.4.so()(64bit)
Package not available
dep: libgmp.so.10()(64bit)
Package not available
dep: libm.so.6()(64bit)
Package not available
dep: rtld(GNU_HASH)
Package not available
dep: libc.so.6(GLIBC_2.17)(64bit)
Package not available
Paketdateipfade (4)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib64/ghc-9.8.4/lib/libHShttp-media-0.8.1.1-AgkftVknkRKJtC7ZOBXkHY-ghc9.8.4.so
- /usr/lib64/ghc-9.8.4/lib/libHShttp-media-0.8.1.1-HjMXHAD1lgbCQNgPVPd7qS-ghc9.8.4.so
- /usr/share/licenses/ghc-http-media
- /usr/share/licenses/ghc-http-media/LICENSE
Field source: Fedora 43 Everything aarch64
