Wai package:yesod-core
Wrap up a normal WAI application as a Yesod subsite. Ignore parent
site's middleware and isAuthorized.
Like
WaiSubsite, but applies parent site's middleware and
isAuthorized.
Same as
toWaiAppPlain, but provides a default set of
middlewares. This set may change with future releases, but currently
covers:
- Logging
- GZIP compression
- Automatic HEAD method handling
- Request method override with the _method query string
parameter
- Accept header override with the _accept query string
parameter
Convert the given argument into a WAI application, executable with any
WAI handler. This function will provide no middlewares; if you want
commonly used middlewares, please use
toWaiApp.
Pure low level function to construct WAI application. Usefull when you
need not standard way to run your app, or want to embed it inside
another app.
Switch over to handling the current request with a WAI
Application.
Send a
Response. Please note: this function is rarely
necessary, and will
disregard any changes to response headers
and session that you have already specified. This function
short-circuits. It should be considered only for very specific needs.
If you are not sure if you need it, you don't.