- basicServer :: BasicConfig -> WebServer
- data BasicConfig = BasicConfig {}
- data Path
- type URLParameter = String
- type ScriptName = String
Documentation
basicServer :: BasicConfig -> WebServerSource
Creating WebServer
with BasicConfig
.
The created WebServer
can handle GET / HEAD / POST;
OK, Not Found, Not Modified, Moved Permanently, etc;
partial getting; language negotication;
CGI, chunked data for CGI output;
If http://example.com/path does not exist but
http://example.com/path/ exists, the created WebServer
redirects it. http://example.com/path/ is mapped to
/somewhere/path/ by mapper
and index.html and index.html.en
automatically added and try to read by obtain
.
If Accept-Language is xx and yy in order,
index.html.xx, index.html.yy, index.html and index.html.en
are tried. The created WebServer
does not dynamically
make index.html for a directory even if index.html does not
exist for security reasons.
data BasicConfig Source
The configuration for the basic web server.
BasicConfig | |
|
Control information of how to handle URI
.
None |
|
File FilePath |
|
CGI FilePath URLParameter ScriptName |
|
type URLParameter = StringSource
A type for URL parameter.
type ScriptName = StringSource
A type for script name.