Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Mobile.HTTPS3ClientTransport

Feature notes: TLS implementation notes (RFC map) · HTTPS client notes (HTTP/1.1, HTTP/2, HTTP/3)

Classes, interfaces and records

classeHTTPS3ClientTransport

inherits from Exception

(no public members)

classtHTTPS3ClientTransport

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;
Delegates to StartRequest, passing 7 argument(s), and returns its result.
function StartRequest(const aMethod, aScheme, aAuthority, aPath: string; const aHeaders: tQpackFields; const aBody: TBytes; aEndStream: Boolean): UInt64; overload;
Delegates to StartRequest, passing 7 argument(s), and returns its result.
function RequestBodyOpen(aStreamID: UInt64): Boolean;
Admission only: no socket wait, Poll or Flush. Accepted const arrays remain immutable. Capacity includes shared receive/send headroom and partial-array transition storage, independently of peer flow credit.
function RequestBodyCapacity(aStreamID: UInt64): Integer; function TrySendBody(aStreamID: UInt64; const aData: TBytes; aEndStream: Boolean): Boolean; function TrySendTrailers(aStreamID: UInt64; const aTrailers: tHttpHeaders): Boolean;
A bounded terminal slot is independent of payload capacity. This only admits fields; the ordinary pump transmits them after queued DATA.
function RequestBodyPending(aStreamID: UInt64): Boolean;
Pending includes an HTTP queue/producer and a QUIC tail, FIN or RESET still awaiting acknowledgement. A completed response stays readable.
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;

Types (enumerations, sets, aliases)

proctHTTPS3LayerEvent

  tHTTPS3LayerEvent = procedure(const aLayer: TCustomTLS_ContentLayer) of object;