Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

methodtHttp2ClientConn.CancelStream

procedure CancelStream(aStreamID: Cardinal);
Abandons a stream: drops what is still queued of its request body and trailers and sends RST_STREAM(CANCEL), unless the stream has already ended in both directions. OnStreamFailed (h2fCancelled, not retryable) fires only when the response was not complete; a complete response stays successful. Response bytes already delivered by OnResponseData still count against the connection's receive window until you ReleaseBody them. An unknown stream is ignored.