Disconnect method

Future<void> Disconnect()
Disconnects the request.

Implementation

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