httpd-shed-0.2: A simple websever with an interact style API

PortabilityGHC
Stabilityunstable
MaintainerAndy Gill <andygill@ku.edu>

Network.Shed.Httpd

Description

A trivial web server, original used in the cherry chess processor.

Synopsis

Documentation

initServerSource

Arguments

:: Int

The port number

-> (Request -> IO Response)

The functionality of the Sever

-> IO Server

A token for the Server

data Request Source

Constructors

Request 

Instances

data Response Source

Constructors

Response 

Fields

resCode :: Int
 
resHeaders :: [(String, String)]
 
resBody :: String
 

Instances

queryToArguments :: String -> [(String, String)]Source

Takes an escaped query, optionally starting with ?, and returns an unescaped index-value list.