All Bundles

WebServer

HTTP and HTTP web server

Operations

ProcessGet

Callback for GET requests

method : public : ProcessGet(request:Web.HTTP.Server.Request, response:Web.HTTP.Server.Response) ~ Bool
Parameters
NameTypeDescription
requestRequestHTTP request
responseResponseHTTP response

ProcessPost

Callback for POST requests

method : public : ProcessPost(request:Web.HTTP.Server.Request, response:Web.HTTP.Server.Response) ~ Bool
Parameters
NameTypeDescription
requestRequestHTTP request
responseResponseHTTP response

Serve

Starts a HTTP server that listens for requests

function : Serve(filename:String) ~ Nil
Parameters
NameTypeDescription
filenameStringconfiguration file (an example)

Starts a HTTP server that listens for requests

function : Serve(callback:Class, port:Int) ~ Nil
Parameters
NameTypeDescription
callbackClassclass inherited from 'HttpRequestHandler'
portIntserver port

Starts a HTTP server that listens for requests

function : Serve(callback:Class, port:Int, is_debug:Bool) ~ Nil
Parameters
NameTypeDescription
callbackClassclass inherited from 'HttpRequestHandler'
portIntserver port
is_debugBooltrue for debug output, false otherwise

ServeSecure

Starts a HTTPS server that listens for requests

function : ServeSecure(filename:String) ~ Nil
Parameters
NameTypeDescription
filenameStringconfiguration 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
Parameters
NameTypeDescription
callbackClassclass inherited from 'HttpsRequestHandler'
portIntserver port
certStringSSL certificate
cert_keyStringSSL certificate key
cert_key_passwdStringSSL 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
Parameters
NameTypeDescription
callbackClassclass inherited from 'HttpsRequestHandler'
portIntserver port
certStringSSL certificate
cert_keyStringSSL certificate key
cert_key_passwdStringSSL certificate password
is_debugBooltrue for debug output, false otherwise

Stop

Stops the server

function : Stop() ~ Nil