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

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