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).