Disconnect method

Future<void> Disconnect()
Disconnects the request.

Implementation

Future<void> Disconnect() async {
  await _lockObject.synchronized(() async {
    _request?.Abort();
    _response.Close();
    await DisconnectWithReason(
      HangingRequestDisconnectReason.UserInitiated,
      null,
    );
  });
}