示例#1
0
 internal IncomingBodyEventArgs(HttpClientStream stream, byte[] data)
     : base(stream)
 {
     Data = data;
 }
示例#2
0
 internal StreamCompleteEventArgs(HttpClientStream stream, int errorCode)
     : base(stream)
 {
     ErrorCode = errorCode;
 }
示例#3
0
 internal IncomingHeadersEventArgs(HttpClientStream stream, HeaderBlock block, HttpHeader[] headers)
     : base(stream)
 {
     Headers = headers;
     Block   = block;
 }
示例#4
0
 internal IncomingHeadersDoneEventArgs(HttpClientStream stream, HeaderBlock block)
     : base(stream)
 {
     Block = block;
 }
示例#5
0
 internal HttpClientStreamEventArgs(HttpClientStream stream)
 {
     Stream = stream;
 }
示例#6
0
        internal void OnIncomingBody(HttpClientStream stream, byte[] data)
        {
            var e = new IncomingBodyEventArgs(stream, data);

            IncomingBody?.Invoke(stream, e);
        }
示例#7
0
 internal void OnIncomingHeadersDone(HttpClientStream stream, HeaderBlock block)
 {
     IncomingHeadersDone?.Invoke(stream, new IncomingHeadersDoneEventArgs(stream, block));
 }
示例#8
0
 internal void OnIncomingHeaders(HttpClientStream stream, HeaderBlock block, HttpHeader[] headers)
 {
     IncomingHeaders?.Invoke(stream, new IncomingHeadersEventArgs(stream, block, headers));
 }
示例#9
0
 internal void OnStreamComplete(HttpClientStream stream, int errorCode)
 {
     StreamComplete?.Invoke(stream, new StreamCompleteEventArgs(stream, errorCode));
 }