Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Http.Hpack

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

Classes, interfaces and records

classEHpackError

inherits from Exception

(no public members)

classEHpackListTooLarge

inherits from EHpackError

Raised when the decoded list exceeds the configured ceiling. A DISTINCT class because the two failures deserve different HTTP/2 error codes: a genuine decode failure is COMPRESSION_ERROR (the peer is broken), an oversized list is ENHANCE_YOUR_CALM (the peer is abusive). Both are connection errors either way - the dynamic table is desynchronised once a block is abandoned midway.

(no public members)

interfaceiHpackEncoder

function Encode(const aHeaders: tHttpHeaders): TBytes; procedure SetMaxTableSize(aSize: Integer);
emit a table-size update on next Encode
procedure SetHuffman(aValue: Boolean); procedure SetIndexing(aValue: Boolean);

interfaceiHpackDecoder

procedure Decode(aData: Pointer; aLen: Integer; const aHeaders: tHttpHeaders); procedure SetMaxTableSize(aSize: Integer);
our advertised SETTINGS ceiling
procedure SetMaxHeaderListSize(aSize: Integer);
Ceiling on the DECODED list (name+value+32 per field). Whatever the caller advertises as SETTINGS_MAX_HEADER_LIST_SIZE belongs here too - the setting is advisory on the wire, so it is worth nothing unless it is also enforced locally. 0 removes the bound and is not advisable against an untrusted peer.

Routines