@hackage snap-accept0.2.1
Accept header branching for the Snap web framework
Categories
License
MIT
Maintainer
Timothy Jones <tim@zmthy.net>
Links
Versions
Installation
Dependencies (5)
- base >=4.6.0 && <5.0
- bytestring >=0.10.0 && <0.11
- case-insensitive >=1.2.0 && <1.3
- http-media >=0.6.0 && <0.8
- snap-core >=0.9.4 && <1.1 Show all…
Dependents (2)
@hackage/acme-everything, @hackage/snaplet-rest
HTTP media type functionality as a complement to Snap's method
and methods
functions. Branches based on the value of the Accept or Accept-Language
header of the current request, automatically setting the Content-Type or
Content-Language header of the response as appropriate.