WEB Server
WEB Server : 4D.WebServer
WEB Server( option : Integer ) : 4D.WebServer
Parameter | Type | Description | |
---|---|---|---|
option | Integer | → | Web server to get (default if omitted = Web server database ) |
Function result | 4D.WebServer | ← | Web server object |
History
Release | Changes |
---|---|
18 R3 | Added |
19 | support for .sessionCookieSameSite |
Description
The WEB Server
command returns the default Web server object, or the Web server object defined through the option parameter.
By default, if the option parameter is omitted, the command returns a reference to the Web server of the database, i.e. the default Web server. To designate the Web server to return, you can pass one of the following constants in the option parameter:
Constant | Value | Comment |
---|---|---|
Web server database | 1 | Current database Web server (default if omitted) |
Web server host database | 2 | Web server of the host database of a component |
Web server receiving request | 3 | Web server that received the request (target Web server) |
The returned Web server object contains the current values of the Web server properties.
Example
From your component, you want to know if the Web server of the host database is started:
// Method of a component
var $hostWS : 4D.WebServer
$hostWS:=WEB Server(Web server host database)
If($hostWS.isRunning)
...
End if
See also
WEB Server list
webServer.stop()
Properties
Command number | 1674 |
Thread safe | ✗ |