HTTP and HTTP web server
OperationsCallback for GET requests
method : public : ProcessGet(request:Request, response:Response) ~ Bool
Name | Type | Description |
---|---|---|
request | Request | HTTP request |
response | Response | HTTP response |
Callback for POST requests
method : public : ProcessPost(request:Request, response:Response) ~ Bool
Name | Type | Description |
---|---|---|
request | Request | HTTP request |
response | Response | HTTP response |
Starts a HTTP server that listens for requests
function : Serve(filename:String) ~ Nil
Name | Type | Description |
---|---|---|
filename | String | configuration file (an example) |
Starts a HTTP server that listens for requests
function : Serve(callback:Class, port:Int) ~ Nil
Name | Type | Description |
---|---|---|
callback | Class | class inherited from 'HttpRequestHandler' |
port | Int | server port |
Starts a HTTP server that listens for requests
function : Serve(callback:Class, port:Int, is_debug:Bool) ~ Nil
Name | Type | Description |
---|---|---|
callback | Class | class inherited from 'HttpRequestHandler' |
port | Int | server port |
is_debug | Bool | true for debug output, false otherwise |
Starts a HTTPS server that listens for requests
function : ServeSecure(filename:String) ~ Nil
Name | Type | Description |
---|---|---|
filename | String | configuration file (an example) |
Starts a HTTPS server that listens for requests
function : ServeSecure(callback:Class, port:Int, cert:String, cert_key:String, cert_key_passwd:String) ~ Nil
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 |
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) ~ Nil
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 |