1 type derived from Http2Stream
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http2\Http2StreamOfT.cs (1)
11
internal sealed class Http2Stream<TContext> :
Http2Stream
, IHostContextContainer<TContext> where TContext : notnull
38 references to Http2Stream
Microsoft.AspNetCore.Server.Kestrel.Core (38)
Internal\Http2\FlowControl\StreamInputFlowControl.cs (3)
16
/// <see cref="
Http2Stream
"/> owns an instance for the stream-level flow control.
27
private readonly
Http2Stream
_stream;
31
Http2Stream
stream,
Internal\Http2\Http2Connection.cs (23)
122
private
Http2Stream
? _currentHeadersStream;
140
private readonly ConcurrentQueue<
Http2Stream
> _completedStreams = new ConcurrentQueue<
Http2Stream
>();
148
internal readonly Dictionary<int,
Http2Stream
> _streams = new Dictionary<int,
Http2Stream
>();
149
internal PooledStreamStack<
Http2Stream
> StreamPool;
189
StreamPool = new PooledStreamStack<
Http2Stream
>(Math.Min(InitialStreamPoolSize, http2Limits.MaxStreamsPerConnection));
455
foreach (
var
stream in _streams.Values)
474
while (StreamPool.TryPop(out
var
pooledStream))
723
if (_streams.TryGetValue(_incomingFrame.StreamId, out
var
stream))
760
private Http2ConnectionErrorException CreateReceivedFrameStreamAbortedException(
Http2Stream
stream)
808
if (_streams.TryGetValue(_incomingFrame.StreamId, out
var
stream))
876
private
Http2Stream
GetStream<TContext>(IHttpApplication<TContext> application) where TContext : notnull
878
if (StreamPool.TryPop(out
var
stream))
958
if (_streams.TryGetValue(_incomingFrame.StreamId, out
var
stream))
1030
foreach (
var
stream in _streams.Values)
1157
else if (_streams.TryGetValue(_incomingFrame.StreamId, out
var
stream))
1389
if (_streams.TryGetValue(streamId, out
var
stream))
1407
void IHttp2StreamLifetimeHandler.OnStreamCompleted(
Http2Stream
stream)
1415
Http2Stream
? firstRequedStream = null;
1418
while (_completedStreams.TryDequeue(out
var
stream))
1456
private void RemoveStream(
Http2Stream
stream)
1481
while (_streams.Count >= maxStreams && _completedStreams.TryDequeue(out
var
stream))
Internal\Http2\Http2FrameWriter.cs (4)
187
var
stream = producer.Stream;
481
private ValueTask<FlushResult> FlushEndOfStreamHeadersAsync(
Http2Stream
stream)
563
private ValueTask<FlushResult> WriteDataAndTrailersAsync(
Http2Stream
stream, in ReadOnlySequence<byte> data, bool writeHeaders, HttpResponseTrailers headers)
781
private ValueTask<FlushResult> WriteDataAsync(
Http2Stream
stream, ReadOnlySequence<byte> data, long dataLength, bool endStream, bool writeHeaders)
Internal\Http2\Http2MessageBody.cs (3)
17
/// Owned by an <see cref="
Http2Stream
"/>.
23
private readonly
Http2Stream
_context;
26
public Http2MessageBody(
Http2Stream
context)
Internal\Http2\Http2OutputProducer.cs (4)
16
/// Owned by <see cref="
Http2Stream
"/>.
30
private readonly
Http2Stream
_stream;
60
public Http2OutputProducer(
Http2Stream
stream, Http2StreamContext context)
80
public
Http2Stream
Stream => _stream;
Internal\Http2\IHttp2StreamLifetimeHandler.cs (1)
8
void OnStreamCompleted(
Http2Stream
stream);