Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Http.Qpack

Feature notes: HTTPS application layer notes (HTTP/1.1, h2, h3)

Classes, interfaces and records

classeQpackError

inherits from Exception

(no public members)

classeQpackListTooLarge

inherits from eQpackError

(no public members)

recordtQpackField

Names and values contain wire octets without a character-set conversion. The HTTP layer validates field syntax and maps its public string API. NeverIndex preserves the literal representation requirement of the N bit.

Name: RawByteString; Value: RawByteString; NeverIndex: Boolean;

classtQpackTable

Connection-owned state; calls are serialized by the HTTP/3 owner. Capacity bounds RFC entry bytes and therefore also the number of retained entries. No table or instruction state may be shared across connections.

constructor Create(aMaximum: Integer); property InsertCount: UInt64 read fInsertCount; property Capacity: Integer read fCapacity; property Size: Integer read fSize; property SlotShiftWork: Int64 read fSlotShiftWork;
Diagnostics: cumulative slot entries moved while compacting the evicted prefix. An amortized insert keeps it linear in the inserts; a per-insert full-array shift drives it toward the inserts times the live entries.

classtQpackDecoder

inherits from tQpackTable

property PendingBytes: Integer read GetPendingBytes; property Incomplete: Boolean read GetIncomplete; property InstructionsProcessed: UInt64 read fProcessed; procedure Feed(const aData: TBytes; aOffset: Integer = 0);
Feed accepts arbitrary fragments under a capacity-derived input bound. Failure makes this connection's codec unusable. No partial field list is published. False TryDecode explicitly returns an empty array and means the Required Insert Count has not arrived.
function Available(const aData: TBytes): Boolean; function TryDecode(aStreamID: UInt64; const aData: TBytes; aMaxListSize: Integer; out aFields: tQpackFields): Boolean; procedure Cancel(aStreamID: UInt64); function TakeInstructions: TBytes;

classtQpackEncoder

inherits from tQpackTable

function HasStreamReferences(aStreamID: UInt64): Boolean; property Incomplete: Boolean read GetIncomplete; property InstructionsProcessed: UInt64 read fProcessed; procedure Configure(aPeerMaximum: UInt64; aPeerBlocked: UInt64 = 0);
Configure once with authenticated peer SETTINGS. Actual local allocation is capped by Create's maximum. Speculative sections are bounded by the peer allowance; zero permits only acknowledged references. Outstanding sections and decoder fragments have finite metadata bounds.
procedure Feed(const aData: TBytes; aOffset: Integer = 0); function Prepare(aStreamID: UInt64; const aFields: tQpackFields; out aInstructions, aBlock: TBytes): tQpackEncoder;
Returns an independent proposed state. The caller owns it and commits by replacing the old encoder only after admission of both instructions and field bytes. Free it to fall back without altering current state. Every out array is explicitly initialized, including empty output.

Types (enumerations, sets, aliases)

arraytQpackFields

  tQpackFields = array of tQpackField;

Routines