Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add scotty-specific middlewares #130

Closed
wants to merge 218 commits into from
Closed

Conversation

Shimuuar
Copy link

This is rebased and sightly refactored PR #76. One important feature is that scotty middlewares are applied after WAI middlewares.

Andrew Farmer and others added 30 commits April 12, 2012 14:38
Adding new route matching data-type "RoutePattern".
but scotty.cabal does not depend on wai-extra, add documentation
…onse

Add "source" function to construct response directly from a Source
Document that basic.hs imports Network.Wai.Middleware.RequestLogger which requires wai-extra
Andrew Farmer and others added 27 commits August 25, 2014 15:45
set default json charset to utf-8 to avoid international chars becoming "garbage"
The extension is available only in GHC 7.6+, which unnecessarily
prevents compiling scotty on older versions (for example Debian Wheezy
has 7.4).

Also simplify takeMVar ... putMVar using modifyMVar.
Mostly copied from `globalstate.hs`.
Use aeson's eitherDecode instead of just decode
Based on patch of Zhang Yichao <[email protected]>
@chessai
Copy link
Contributor

chessai commented Dec 19, 2019

closing. see #257

@chessai chessai closed this Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.