Server
Server API available from the Core library.
Configuration
This object does not expose a public Config table.
Methods
Create
Creates a new Server instance.
Create(Port, IP='')
Arguments
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Port |
Required | Any valid value | Port value used by the operation. |
IP |
'' |
Any valid value | IP value used by the operation. |
Output
Creates a new Server object.
Root
Runs the Root operation for Server.
Root(Path)
Arguments
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Path |
Required | Any valid value | File path used for reading or writing. |
Output
Returns True/False to indicate success.
CGI
Runs the CGI operation for Server.
CGI(Path)
Arguments
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Path |
Required | Any valid value | File path used for reading or writing. |
Output
Returns True/False to indicate success.
CORS
Runs the CORS operation for Server.
CORS(Origin)
Arguments
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Origin |
Required | Any valid value | Origin value used by the operation. |
Output
Returns True/False to indicate success.
Cache_Control
Runs the Cache_Control operation for Server.
Cache_Control(Value)
Arguments
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Value |
Required | Any valid value | Value to set or process. |
Output
Returns True/False to indicate success.
Timeout
Runs the Timeout operation for Server.
Timeout(Seconds)
Arguments
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Seconds |
Required | Any valid value | Seconds value used by the operation. |
Output
Returns True/False to indicate success.
Allowed_Methods
Runs the Allowed_Methods operation for Server.
Allowed_Methods(Methods)
Arguments
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Methods |
Required | Any valid value | Methods value used by the operation. |
Output
Returns True/False to indicate success.
Health
Runs the Health operation for Server.
Health(Path)
Arguments
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Path |
Required | Any valid value | File path used for reading or writing. |
Output
Returns True/False to indicate success.
Allow_Only_IPs
Runs the Allow_Only_IPs operation for Server.
Allow_Only_IPs(Ips)
Arguments
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Ips |
Required | Any valid value | Ips value used by the operation. |
Output
Returns True/False to indicate success.
Enable_TLS
Runs the Enable_TLS operation for Server.
Enable_TLS(Certfile, Keyfile=None)
Arguments
| Argument | Default | Accepted values | What it does |
|---|---|---|---|
Certfile |
Required | Any valid value | Certfile value used by the operation. |
Keyfile |
None |
Any valid value | Keyfile value used by the operation. |
Output
Returns True/False to indicate success.
Start
Starts the process or connection.
Start()
Arguments
No arguments.
Output
Returns success/status or the operation result.
Close
Applies a morphology-style image operation.
Close()
Arguments
No arguments.
Output
Returns success/status or the operation result.