http-media alternatives and similar packages
Based on the "http" category.
Alternatively, view http-media alternatives based on common mentions on social networks and blogs.
http-api-data9.0 2.0 http-media VS http-api-dataConverting to/from HTTP API data like URL pieces, headers and query parameters.
http-reverse-proxy9.0 0.0 http-media VS http-reverse-proxyReverse proxy HTTP requests, either over raw sockets or with WAI
http-kinder8.7 0.0 http-media VS http-kinderKind-safe framework for type-safe APIs
http-proxy8.7 0.0 http-media VS http-proxyA Haskell library for writing HTTP and HTTPS proxies.
wai-cors7.7 0.0 http-media VS wai-corsA Haskell implementation of Cross-Origin resource sharing (CORS) for Wai
http-conduit-downloaderHTTP downloader tailored for web-crawler needs
http-trace4.5 0.0 http-media VS http-traceTrace all HTTP redirections of an URL
http-grammar4.5 0.0 http-media VS http-grammarAttoparsec-based parsers for the RFC-2616 HTTP grammar rules.
http-query3.2 0.0 http-media VS http-querySimple http queries
http-common0.5 1.7 http-media VS http-commonBase Haskell types used by a variety of HTTP clients and servers.
Static code analysis for 29 languages.
Do you think we are missing an alternative of http-media or a related project?
This 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
send = 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
recv = getContentType >>= maybe send415Error readRequestBodyWith . mapContentMedia [ ("application/json", parseJson) , ("text/plain", parseText) ]
The API is agnostic to your choice of server.