WebServer
HTTP and HTTP web server
Operations
Serve
Starts a HTTP server that listens for requests
function : Serve(filename:String) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| filename | String | configuration file (an example) |
Serve
Starts a HTTP server that listens for requests
function : Serve(callback:Class, port:Int) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| callback | Class | class inherited from 'HttpRequestHandler' |
| port | Int | server port |
Serve
Starts a HTTP server that listens for requests
function : Serve(callback:Class, port:Int, is_debug:Bool) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| callback | Class | class inherited from 'HttpRequestHandler' |
| port | Int | server port |
| is_debug | Bool | true for debug output, false otherwise |
ServeSecure
Starts a HTTPS server that listens for requests
function : ServeSecure(filename:String) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| filename | String | configuration file (an example) |
ServeSecure
Starts a HTTPS server that listens for requests
function : ServeSecure(callback:Class, port:Int, cert:String, cert_key:String, cert_key_passwd:String) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| callback | Class | class inherited from 'HttpsRequestHandler' |
| port | Int | server port |
| cert | String | SSL certificate |
| cert_key | String | SSL certificate key |
| cert_key_passwd | String | SSL certificate password |
ServeSecure
Starts a HTTPS server that listens for requests
function : ServeSecure(callback:Class, port:Int, cert:String, cert_key:String, cert_key_passwd:String, is_debug:Bool) ~ NilParameters
| Name | Type | Description |
|---|---|---|
| callback | Class | class inherited from 'HttpsRequestHandler' |
| port | Int | server port |
| cert | String | SSL certificate |
| cert_key | String | SSL certificate key |
| cert_key_passwd | String | SSL certificate password |
| is_debug | Bool | true for debug output, false otherwise |