Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

StreamSec.Http.Http3Frames

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

Classes, interfaces and records

classeHttp3Error

inherits from Exception

constructor Create(aErrorCode: UInt64; const aMessage: string); property ErrorCode: UInt64 read fErrorCode;

recordtHttp3Settings

QpackMaxTableCapacity, QpackBlockedStreams, MaxFieldSectionSize: UInt64;

recordtHttp3FramePiece

Kind: tHttp3FramePieceKind; FrameType, FrameLength: UInt64; Data: TBytes; DataOffset, DataCount: Integer;

classtHttp3FrameReader

One reader belongs to one ordered stream. Read consumes at most the supplied input and returns one header, DATA chunk or completion. A header is returned before payload allocation so the caller can reject stream or message context. DATA pieces retain a read-only reference to aData, with DataOffset/DataCount selecting the chunk; no payload copy is made. Completion carries the buffered payload for HEADERS, SETTINGS, PUSH_PROMISE and single-integer frames. Unknown payloads are discarded incrementally without allocation. Complete pieces for DATA and unknown types have no Data. Call Read until False, including with empty input, before Finish at FIN. Context, frame ordering and message semantics are the caller's responsibility. Reader state is unusable after an exception.

constructor Create(aMaxBufferedFrame: Integer); function Read(const aData: TBytes; var aOffset: Integer; out aPiece: tHttp3FramePiece): Boolean; procedure Finish; property Incomplete: Boolean read GetIncomplete;
A partial type/length or payload belongs to the current frame, even before Read can return its header. Idle frame boundaries are False.

Types (enumerations, sets, aliases)

enumtHttp3FramePieceKind

  tHttp3FramePieceKind = (h3pkHeader, h3pkData, h3pkComplete);

Routines