v2026.2.1
All Bundles

WebServer

HTTP and HTTP web server

Operations

Serve

Starts a HTTP server that listens for requests

function : Serve(filename:String) ~ Nil

Parameters

NameTypeDescription
filenameStringconfiguration file (an example)

Serve

Starts a HTTP server that listens for requests

function : Serve(callback:Class, port:Int) ~ Nil

Parameters

NameTypeDescription
callbackClassclass inherited from 'HttpRequestHandler'
portIntserver port

Serve

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)

ServeSecure

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

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) ~ 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