Method HttpEndpoint():new() Professional

Creates an instance of the class HttpEndpoint.

:new( [<nPort>] [,<cAddress>] ) --> oHttpEndpoint
The optional numeric parameter <nPort> specifies the port at which the HttpEndpoint listens after the method :start() is called. The value <nPort> defaults to the HTTP standard port 80.
The optional parameter <cAddress> is the IP address in dotted octed notation (e.g. "") or hostname as a character string to which the HttpEndpoint binds after startup. If an asterisk ("*") is passed in the <cAddress> parameter, the HttpEndpoint can service multiple network interfaces and binds to all IP addresses of the installed network adapters. This includes "localhost". By default, the HttpEndpoint binds to the public address of the host.

If an IP address is specified in <cAddress>, the resulting binding is exclusive and prevents other HTTPEndpoint instances from binding to this IP address and port.


The class method :new() returns an HttpEndpoint object.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.