internal IncomingBodyEventArgs(HttpClientStream stream, byte[] data) : base(stream) { Data = data; }
internal StreamCompleteEventArgs(HttpClientStream stream, int errorCode) : base(stream) { ErrorCode = errorCode; }
internal IncomingHeadersEventArgs(HttpClientStream stream, HeaderBlock block, HttpHeader[] headers) : base(stream) { Headers = headers; Block = block; }
internal IncomingHeadersDoneEventArgs(HttpClientStream stream, HeaderBlock block) : base(stream) { Block = block; }
internal HttpClientStreamEventArgs(HttpClientStream stream) { Stream = stream; }
internal void OnIncomingBody(HttpClientStream stream, byte[] data) { var e = new IncomingBodyEventArgs(stream, data); IncomingBody?.Invoke(stream, e); }
internal void OnIncomingHeadersDone(HttpClientStream stream, HeaderBlock block) { IncomingHeadersDone?.Invoke(stream, new IncomingHeadersDoneEventArgs(stream, block)); }
internal void OnIncomingHeaders(HttpClientStream stream, HeaderBlock block, HttpHeader[] headers) { IncomingHeaders?.Invoke(stream, new IncomingHeadersEventArgs(stream, block, headers)); }
internal void OnStreamComplete(HttpClientStream stream, int errorCode) { StreamComplete?.Invoke(stream, new StreamCompleteEventArgs(stream, errorCode)); }