v2026.4.1
All Bundles

WebServerConfig

Web server configuration manager

Implements: RequestPageHandler

Operations

AddFiles

Adds files to a group

method : private : AddFiles(group:String, mimi:String, item_json:JsonElement) ~ Bool

Parameters

NameTypeDescription
groupStringfile group
mimiStringMIME type
item_jsonJsonElementJSON configuration

Return

TypeDescription
Booltrue if successful, false otherwise

AddHandler

Adds a file handler to a group

method : private : AddHandler(group:String, mimi:String, item_json:JsonElement) ~ Bool

Parameters

NameTypeDescription
groupStringfile group
mimiStringMIME type
item_jsonJsonElementJSON configuration

Return

TypeDescription
Booltrue if successful, false otherwise

GetCertKeyPath

Gets the SSL certificate key path

method : public : GetCertKeyPath() ~ String

Return

TypeDescription
StringSSL certificate key path

GetCertPassword

Gets the SSL certificate password

method : public : GetCertPassword() ~ String

Return

TypeDescription
StringSSL certificate password

GetCertPath

Gets the SSL certificate path

method : public : GetCertPath() ~ String

Return

TypeDescription
StringSSL certificate path

GetClass

Gets the request handler class

method : public : GetClass() ~ Class

Return

TypeDescription
Classrequest handler class

GetFilename

Gets the configuration filename

method : public : GetFilename() ~ String

Return

TypeDescription
Stringconfiguration filename

GetPort

Gets the server port

method : public : GetPort() ~ Int

Return

TypeDescription
Intserver port

HasStaticHandler

Checks if a static handler exists for the given name

method : public : HasStaticHandler(name:String) ~ Bool

Parameters

NameTypeDescription
nameStringhandler name

Return

TypeDescription
Booltrue if static handler exists, false otherwise

IsDebug

Checks if debug mode is enabled

method : public : IsDebug() ~ Bool

Return

TypeDescription
Booltrue if debug mode is enabled, false otherwise

IsHandlingFiles

Checks if file handling is enabled

method : public : IsHandlingFiles() ~ Bool

Return

TypeDescription
Booltrue if file handling is enabled, false otherwise

Load

Loads the configuration from file

method : public : Load() ~ Bool

Return

TypeDescription
Booltrue if successful, false otherwise

New

Constructor

New(filename:String)

Parameters

NameTypeDescription
filenameStringconfiguration file path

Process

Processes HTTP request and response

method : private : Process(request:Request, response:Response) ~ Bool

Parameters

NameTypeDescription
requestRequestHTTP request
responseResponseHTTP response

Return

TypeDescription
Booltrue if successful, false otherwise

Process

Processes a file handler request

method : private : Process(file_handler:FileHandler, response:Response) ~ Bool

Parameters

NameTypeDescription
file_handlerFileHandlerfile handler
responseResponseHTTP response

Return

TypeDescription
Booltrue if successful, false otherwise

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

ToString

Gets the string representation of the configuration

method : public : ToString() ~ String

Return

TypeDescription
Stringstring representation