1 instantiation of Http2Stream
System.Net.Http (1)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (1)
1641
var http2Stream = new
Http2Stream
(request, this);
41 references to Http2Stream
System.Net.Http (41)
System\Net\Http\SocketsHttpHandler\Http2Connection.cs (22)
41
private readonly Dictionary<int,
Http2Stream
> _httpStreams;
143
_httpStreams = new Dictionary<int,
Http2Stream
>();
614
private
Http2Stream
? GetStream(int streamId)
623
if (!_httpStreams.TryGetValue(streamId, out
Http2Stream
? http2Stream))
640
Http2Stream
? http2Stream = GetStream(streamId);
769
Http2Stream
? http2Stream = GetStream(frameHeader.StreamId);
943
foreach (KeyValuePair<int,
Http2Stream
> kvp in _httpStreams)
1024
Http2Stream
? http2Stream = GetStream(frameHeader.StreamId);
1049
Http2Stream
? http2Stream = GetStream(frameHeader.StreamId);
1077
List<
Http2Stream
> streamsToAbort = new List<
Http2Stream
>();
1082
foreach (KeyValuePair<int,
Http2Stream
> kvp in _httpStreams)
1095
foreach (
Http2Stream
s in streamsToAbort)
1574
private void AddStream(
Http2Stream
http2Stream)
1620
private async ValueTask<
Http2Stream
> SendHeadersAsync(HttpRequestMessage request, CancellationToken cancellationToken, bool mustFlush)
1641
var
http2Stream = new Http2Stream(request, this);
1808
List<
Http2Stream
> streamsToAbort = new List<
Http2Stream
>();
1821
foreach (KeyValuePair<int,
Http2Stream
> kvp in _httpStreams)
1831
foreach (
Http2Stream
s in streamsToAbort)
1994
Http2Stream
http2Stream = await SendHeadersAsync(request, cancellationToken, mustFlush: shouldExpectContinue || request.IsExtendedConnectRequest).ConfigureAwait(false);
2062
private void RemoveStream(
Http2Stream
http2Stream)
System\Net\Http\SocketsHttpHandler\Http2Stream.cs (15)
350
var
thisRef = (
Http2Stream
)s!;
1456
var
thisRef = (
Http2Stream
)s!;
1500
public Http2ReadStream(
Http2Stream
http2Stream) : base(http2Stream, closeResponseBodyOnDispose: true) { }
1515
public Http2WriteStream(
Http2Stream
http2Stream, long contentLength) : base(http2Stream)
1546
private
Http2Stream
? _http2Stream;
1549
public Http2ReadWriteStream(
Http2Stream
http2Stream, bool closeResponseBodyOnDispose = false)
1575
Http2Stream
? http2Stream = Interlocked.Exchange(ref _http2Stream, null);
1599
Http2Stream
? http2Stream = _http2Stream;
1607
Http2Stream
? http2Stream = _http2Stream;
1625
Http2Stream
http2Stream = _http2Stream ?? throw ExceptionDispatchInfo.SetCurrentStackTrace(new ObjectDisposedException(nameof(Http2ReadStream)));
1632
Http2Stream
? http2Stream = _http2Stream;
1642
Http2Stream
? http2Stream = _http2Stream;
1659
Http2Stream
? http2Stream = _http2Stream;
System\Net\Http\SocketsHttpHandler\Http2StreamWindowManager.cs (4)
23
public Http2StreamWindowManager(Http2Connection connection,
Http2Stream
stream)
46
public void AdjustWindow(int bytesConsumed,
Http2Stream
stream)
69
private void AjdustWindowStatic(int bytesConsumed,
Http2Stream
stream)
85
private void AdjustWindowDynamic(int bytesConsumed,
Http2Stream
stream)