******************************************************************************
Feature notes: HTTPS application layer notes (HTTP/1.1, h2, h3)
constructor Create(aID: Cardinal; aSendWindow, aRecvWindow: Integer);
destructor Destroy; override;
A stream on tHttp2Conn's list of streams reset under a peer that may still be sending on them (fResetIDs): the streams listed just before and just after it, 0 at either end - 0 is never a peer's stream.
Older: Cardinal;
Newer: Cardinal;
constructor Create(const aRemoteAddress: string);
destructor Destroy; override;
procedure Opened;
procedure RefuseConnection(aErrorCode: Cardinal);
procedure Receive(aData: Pointer; aLen: Integer);
procedure ReceiveEarly(aData: Pointer; aLen: Integer);
procedure ResumeOutput;
procedure Closed;
procedure WorkQueued;
property Router: iHttpRouter read fRouter write fRouter;
property SessionProvider: iHttpSessionProvider read fSessionProvider write fSessionProvider;
property Wake: iHttpServerWake read fWake write fWake;
property OnWorkDeadline: tHttp2DeadlineEvent read fOnWorkDeadline write fOnWorkDeadline;
property HeaderTimeoutMSec: Integer read fHeaderTimeoutMSec write fHeaderTimeoutMSec;
property RequestTimeoutMSec: Integer read fRequestTimeoutMSec write fRequestTimeoutMSec;
property OnResolvedDispatch: tHttp2ResolvedDispatchEvent read fOnResolvedDispatch write fOnResolvedDispatch;
property OnPrepareStreamingResponse: tHttp2PrepareStreamingResponseEvent read fOnPrepareStreamingResponse write fOnPrepareStreamingResponse;
property Session : iHttpSession read fSession write fSession;
property ConnectionInfo: iHttpConnectionInfo read fConnInfo write fConnInfo;
property OnOutput : tHttp2OutputEvent read fOnOutput write fOnOutput;
property OnDispatch: tHttp2DispatchEvent read fOnDispatch write fOnDispatch;
property OnClose : TNotifyEvent read fOnClose write fOnClose;
property OnChargeBody : tHttp2ChargeEvent read fOnChargeBody write fOnChargeBody;
property OnReleaseBody: tHttp2ReleaseEvent read fOnReleaseBody write fOnReleaseBody;
property OnOutputRoom: tHttp2RoomEvent read fOnOutputRoom write fOnOutputRoom;
property OnChargeResponse : tHttp2ResponseBytesEvent read fOnChargeResponse write fOnChargeResponse;
property OnReleaseResponse: tHttp2ResponseBytesEvent read fOnReleaseResponse write fOnReleaseResponse;
property OnResponseBudgetFull: tHttp2BudgetFullEvent read fOnResponseBudgetFull write fOnResponseBudgetFull;
property OnBodyRefused: tHttpBodyRefusedEvent read fOnBodyRefused write fOnBodyRefused;
property BodyBytes: Int64 read fBodyBytes;
property ResponseBytes: Int64 read fRespBytes;
property OutgoingTrailerBytes: Int64 read fOutgoingTrailerBytes;
property OutgoingTrailerWireBytes: Int64 read fOutgoingTrailerWireBytes;
property MaxConcurrentStreams: Integer read fMaxConcurrentStreams write fMaxConcurrentStreams;
property MaxBodyBytes : Integer read fMaxBodyBytes write fMaxBodyBytes;
property MaxConnBodyBytes : Integer read fMaxConnBodyBytes write fMaxConnBodyBytes;
property MaxConnResponseBytes: Integer read fMaxConnResponseBytes write fMaxConnResponseBytes;
property MaxHeaderBlockBytes: Integer read fMaxHeaderBlockBytes write fMaxHeaderBlockBytes;
property MaxContinuationFrames : Integer read fMaxContinuationFrames write fMaxContinuationFrames;
property MaxHeaderListBytes : Integer read fMaxHeaderListBytes write SetMaxHeaderListBytes;
property MaxStreamsPerConnection : Integer read fMaxStreamsPerConnection write fMaxStreamsPerConnection;
property MaxUnproductiveFrames: Integer read fMaxUnproductive write SetMaxUnproductiveFrames;
property StreamsOpened: Int64 read fStreamsOpened;
property UnproductiveTokens: Integer read fUnproductive;
Body-budget hooks. The engine is transport-free and owns no policy, so it asks whoever wired it up whether it may buffer more, and tells the same owner when it lets go. Unassigned means unlimited, which is what a standalone test harness wants. False from a charge is "not now" - the caller resets the stream, it does not kill the connection.
Output pacing: how many octets the owner can take through OnOutput right now. Unassigned means unlimited, which is what a standalone harness wants and what the engine did before it asked.
Response-budget hooks: memory-held response octets taken on and let go, and whether the owner's server-wide budget has room for another stream. Charging cannot be refused - by then the response exists - so it is the question at stream OPEN that does the bounding.