|
| Framework.Http.Httpd | | Portability | GHC | | Stability | unstable | | Maintainer | Ilya Portnov |
|
|
|
| Description |
A trivial web server.
This web server promotes a Request to IO Response function
into a local web server. The user can decide how to interpret
the requests, and the library is intended for implementing Ajax APIs.
initServerLazy (and assocated refactorings) was written by Henning Thielemann.
|
|
| Synopsis |
|
|
|
| Documentation |
|
| type Server = () |
|
| initServer |
|
|
| initServerLazy |
| :: Int | Chunk size
| | -> StaticConfig | | | -> Request S -> IO (Response S) | The functionality of the Sever
| | -> IO Server | A token for the Server
| | This server transfers documents in chunked mode
and without content-length header.
This way you can ship infinitely big documents.
It inserts the transfer encoding header for you.
|
|
|
| queryToArguments :: String -> [(String, String)] |
| Takes an escaped query, optionally starting with ?, and returns an unescaped index-value list.
|
|
| addCache :: Int -> (String, String) |
|
| noCache :: (String, String) |
|
| contentType :: String -> (String, String) |
|
| int2respCode :: Int -> ResponseCode |
|
| Produced by Haddock version 2.4.2 |