Listener -
http
: Listener
This is used for creating HTTP server endpoints. An HTTP server endpoint is capable of responding to
remote callers. The Listener
is responsible for initializing the endpoint using the provided configurations.
Constructor
__init
(int port, ListenerConfiguration? config)
- port int
- config ListenerConfiguration? ()
Methods
__gracefulStop
__immediateStop
init
Gets invoked during module initialization to initialize the endpoint.
initEndpoint
detach
Disengage an attached service from the listener.
LifeCycle Methods
Methods
Gets invoked during module initialization to initialize the endpoint.
Parameters
- c ListenerConfiguration
-
Configurations for HTTP service endpoints
Disengage an attached service from the listener.
Parameters
- s service
-
The service that needs to be detached
-
Return Type
(error?) An
error
if there is any error occurred during the service detachment process or else nil