Response format helper for the Scotty web framework
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
src/Web/Scotty/Format
test
.gitignore
LICENSE
README.md
Setup.hs
scotty-format.cabal
stack.yaml

README.md

scotty-format

scotty-format is a helper for the Scotty web framework that helps you defining different response formats based on the request's Accept header value.

The functional inspiration for this helper comes from how Rails handles different response formats. In Rails you can implement any action to respond with different formats based on a request Accept header value.

Inspiration for the implementation of this helper comes from scotty-resource, another helper for Scotty that lets you define REST resources easily by following HTTP strictly.

Usage example

Checkout the examples directory.