HTTPServerResponse.waitForConnectionClose

Waits until either the connection closes, data arrives, or until the given timeout is reached.

class HTTPServerResponse
scope @safe
bool
waitForConnectionClose
(
Duration timeout = Duration.max
)

Return Value

Type: bool

true if the connection was closed and false if either the timeout was reached, or if data has arrived for consumption.

See Also

connected

Meta