Maintainer | Ertugrul Soeylemez <es@ertes.de> |
---|
Core functionality.
- webWire :: forall a site. (Application -> IO a) -> site -> WebWire site () Response -> IO a
- simpleWire :: (Application -> IO a) -> SimpleWire () Response -> IO a
- simpleError :: WebWire site Status Response
Running webwire applications
:: forall a site . | |
=> (Application -> IO a) | WAI handler to use. |
-> site | Site configuration. |
-> WebWire site () Response | Webwire application to run. |
-> IO a | Result of the WAI handler. |
Run a webwire application using the given WAI handler.
Simple webwires
simpleWire :: (Application -> IO a) -> SimpleWire () Response -> IO aSource
Run a simple webwire. This wire type is for simple sites (usually
just test sites or temporary sites), which don't need a custom
WebSite
instance.
Tools
simpleError :: WebWire site Status ResponseSource
Present a very simple plaintext error page for the given status.