Haskell web app framework based on WAI & Warp https://github.com/natesymer/webapp
|Latest on Hackage:||0.6.1|
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
Web.App - WAI web framework
Web.App is a general, minimalist Haskell web framework. See Haddock documentation and
- Web.App can either be ran standalone (i.e. look ma, no nginx!) or behind other server programs.
- To bind to privileged ports, your program must be executable as root. Privileges are resigned after the port is bound.
- Web.App uses Warp under the hood to serve a WAI app based on provided routes.
- SSL & HTTP2 are supported.
- Web.App provides a function called
webappMain(as well as a series of other similarly named functions) that start your app.
- Your program’s
mainfunction should finish with a call to one of them.
- Web.App also provides command line options for controlling the HTTP server.
- It also provides
- Initial release
- Fix omitted module in
- Included a new example: a counter app with an additional CLI parser.
- Implemented a “util” CLI subcommand where you can “mount” an optparse-applicative @Parser@. See example.
- Fixed termination handlers. Previously, they weren’t installed when using HTTPS due to a bug in warp-tls. This has been remedied. Additionally, these handlers would destroy the initial state, rather than the current state from the @TVar@.
- Complete rewrite
- New WAI-based web framework
- Routing with captures, regexes, and literals
- Streaming body based around
- Allow data structures to be streamed via the ‘ToStream’ typeclass.
- Typesafe parameter coersion
- `stream` function can now optionally flush. `stream'` will always flush. This may improve list streaming functionality.
- Breaking change; refactor internals & simplify `Web.App.RouteT`