TsgcHTTP3Client › Methods › Disconnect

Disconnect Method

Closes the HTTP/3 connection and the underlying QUIC transport.

Syntax

procedure Disconnect;

Remarks

Disconnect closes the QUIC connection together with the HTTP/3 control and QPACK streams, and any request still in flight is abandoned. OnDisconnect fires once the connection is closed and Connected returns False afterwards.

Calling Disconnect when the client is not connected is safe and does nothing.

Example



oClient.Disconnect;

Back to Methods