Changelog for scotty-0.8.2
mtlrelated deprecation warnings
Export internal types
Upgrade to wai/wai-extra/warp 3.0
No longer depend on conduit-extra.
sourceresponse method has been deprecated in favor of a new
streamresponse, matching changes in WAI 3.0.
Removed the deprecated
- Bump upper bound for case-insensitive, mtl and transformers.
- Bump lower bound on conduit, add conduit-extra to cabal build depends.
- Default warp settings now use
setFdCacheDuration 0to work around a warp issue where file changes are not getting picked up.
headersfunction to get all headers.
ActionTsuch that IO exceptions are lifted into
warpbounds, including new lower bound for
warp, which fixes a security issue related to Slowloris protection.
- Bump upper bound for
- Match changes in
The Scotty transformers (
ActionT) are now parameterized over a custom exception type, allowing one to extend Scotty's
ErrorTlayer with something richer than
Texterrors. See the
exceptionsexample for use.
ActionMremain specialized to
Textexceptions for simplicity.
Both monads are now instances of
There is a new
Internals brought up-to-date with WAI 2.0 and related packages.
The Scotty monads (
ActionM) are now monad transformers, allowing Scotty applications to be embedded in arbitrary
MonadIOs. The old API continues to be exported from
type ScottyM = ScottyT IO type ActionM = ActionT IO
The new transformers are found in
Web.Scotty.Trans. See the
globalstateexample for use. Special thanks to Dan Frumin (co-dan) for much of the legwork here.
Added support for HTTP PATCH method.
Removed lambda action syntax. This will return when we have a better story for typesafe routes.
reqHeader :: Text -> ActionM Text==>
reqHeader :: Text -> ActionM (Maybe Text)
rawmethod to set body to a raw
Parse error thrown by
jsonDatanow includes the body it couldn't parse.
addHeader. The former replaces a response header (original behavior). The latter adds a header (useful for multiple
Set-Cookies, for instance).