예제 #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));
 }