Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- runWarpC :: Port -> Cell IO (a, Request) (b, Response) -> Cell (HandlingStateT IO) a b
- runWarpC_ :: Port -> Cell IO Request Response -> Cell (HandlingStateT IO) () ()
- module Network.Wai
- module Network.HTTP.Types
Documentation
runWarpC :: Port -> Cell IO (a, Request) (b, Response) -> Cell (HandlingStateT IO) a b Source #
Run a Cell
as a WARP application.
- Starts a WARP application on the given port in a background thread
- Block until the next request arrives
- Supplies the cell with the input and the current request
- Serve the response and return the output
Keep in mind that the resulting cell is blocking.
For a non-blocking cell, use NonBlocking
.
module Network.Wai
module Network.HTTP.Types