Legend

Class
Struct
Enum
Interface
Delegate
Constructor
Method
Property
Event
Field

Method: void StopListening(bool, bool)

Declaration

public void StopListening(
    bool brutal = false,
    bool blocking = false
)

Summary

Shuts the HTTP server down.

Parameters

boolbrutal If true, currently executing requests will have their connections brutally closed. The server will be fully shut down when the method returns. If false, all idle keepalive connections will be closed but active connections will be allowed to end normally. In this case, use HttpServer.ShutdownComplete to wait until all connections are closed.
boolblocking If true, will only return once all connections are closed. This might take a while unless the brutal option is true. Setting this to true is the same as waiting for HttpServer.ShutdownComplete indefinitely.