- Fix failing compilation: Use qualified import of Data.Text.
- Bump version bounds for http2 to >=5.0 && <5.4
- Bump version bounds for transformers so Twain can be built with GHC 9.6.1
- Add getters for query, path, and cookie params.
- Remove ghc flag and add default-language.
- Add tests
- Add CSS response
Simplify API to decompose routes into WAI middleware.
- Removed
TwainM
monad in favor of composing WAI middleware. - Replace
RouteM
withResponderM
, no longer parametized by environment in preference for middleware utilizing request vault. - Replace string errors with new
HttpError
. - Rename param and file functions to be consistent.
- Renamed
param'
toparamEither
. - Renamed
file
tofileMaybe
. - Added
file
which matchesparam
functionality. - Changed behavior of
paramMaybe
to throwHttpError
.
- Renamed
- Set default cookie path and http-only.
- Add additional helpers
withMaxBodySize
andwithParseBodyOpts
for limiting request body parsing.
- Export
parseBody
to allow customParseRequestBodyOptions
.
- Initial release.