TsgcHTTP2Client | Client Close Connection

Connection can be closed using Active property or using Close/Disconnect methods.

 

Active property

When connection is active and you set Active := False, the connection will be closed inmediately without sending any message to server about the disconnection.

 

Disconnect

You can use Disconnect method (from TsgcHTTP2Client or TsgcHTTP2ConnectionClient) to disconnect the socket.

Close

This method, sends a message to server informing that connection will be closed and you can send optionally some info about the reason of the disconnection. Is a clean mode of close a HTTP/2 connection.

Close method can be called from TsgcHTTP2Client or TsgcHTTP2ConnectionClient objects.

 

The following errors reasons can be send: