Function HTTPServerResponse.waitForConnectionClose
Waits until either the connection closes, data arrives, or until the given timeout is reached.
bool waitForConnectionClose
(
core .time .Duration timeout = max()
) scope scope @safe;
Returns
true
if the connection was closed and false
if either the
timeout was reached, or if data has arrived for consumption.