Feature notes: TLS implementation notes (RFC map) · HTTPS client notes (HTTP/1.1, HTTP/2, HTTP/3)
inherits from Exception
(no public members)
The owning HTTPS client supplies the gate and reader thread. Pump, stream calls and WaitMilliseconds run under that gate; WaitForData runs outside it and Wake can run from the stopping/queueing thread. No method reenters from TLS/HTTP callbacks. The TLS engine is borrowed; this object owns its UDP socket and QUIC/HTTP3 adapters. Close follows reader-thread shutdown. EngineDestroyed is only for a late destruction notification, when the engine has already freed its sessions; it must precede Close in that case. Request stream zero is valid. Failure before Open returns True submits no HTTP request; callers never replay an accepted StartRequest automatically.
constructor Create(aEngine: TsmCustomTLSInternalServer; const aObserver: iHttp3ClientObserver); overload;
constructor Create(aEngine: TsmCustomTLSInternalServer; const aObserver: iHttp3ClientObserver; const aLimits: tHttp3ClientLimits); overload;
destructor Destroy; override;
function Open(const aOriginHost, aServerName, aSourceIP: string; aUDPPort: Word; aAttemptTimeoutMS: Cardinal; aDeadlineTick: UInt64; aConfigureLayer, aHandshakeDone: tHTTPS3LayerEvent; aCancelled: tHostLookupCancelQuery = nil): Boolean;
procedure Pump;
function WaitMilliseconds(aMaximumMS: Cardinal): Cardinal;
function WaitForData(aMSec: Cardinal): Boolean;
procedure Wake;
procedure Close;
procedure EngineDestroyed;
function StartRequest(const aMethod, aScheme, aAuthority, aPath: string; const aHeaders: tQpackFields; const aBody: TBytes): UInt64; overload;
function StartRequest(const aMethod, aScheme, aAuthority, aPath: string; const aHeaders: tQpackFields; const aBody: TBytes; aEndStream: Boolean): UInt64; overload;
function RequestBodyOpen(aStreamID: UInt64): Boolean;
function RequestBodyCapacity(aStreamID: UInt64): Integer;
function TrySendBody(aStreamID: UInt64; const aData: TBytes; aEndStream: Boolean): Boolean;
function TrySendTrailers(aStreamID: UInt64; const aTrailers: tHttpHeaders): Boolean;
function RequestBodyPending(aStreamID: UInt64): Boolean;
procedure ReleaseBody(aStreamID, aCount: UInt64);
procedure Cancel(aStreamID: UInt64);
property Ready: Boolean read GetReady;
property Connected: Boolean read GetConnected;
property Secure: Boolean read GetSecure;
property ContentLayer: TCustomTLS_ContentLayer read GetContentLayer;
property LastError: string read fLastError;