@hackage / snap-accept

Accept header branching for the Snap web framework

Latest0.2.1

About

Metadata

  • Last updated , by TimothyJones
  • License MIT
  • Categories Web Development
  • Maintained by: Timothy Jones <tim@zmthy.net>

  • Lottery factor: 0

Links

Installation

Readme

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.