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)
126
private
Http2Stream
? _currentHeadersStream;
144
private readonly ConcurrentQueue<
Http2Stream
> _completedStreams = new ConcurrentQueue<
Http2Stream
>();
152
internal readonly Dictionary<int,
Http2Stream
> _streams = new Dictionary<int,
Http2Stream
>();
153
internal PooledStreamStack<
Http2Stream
> StreamPool;
193
StreamPool = new PooledStreamStack<
Http2Stream
>(Math.Min(InitialStreamPoolSize, http2Limits.MaxStreamsPerConnection));
459
foreach (
var
stream in _streams.Values)
478
while (StreamPool.TryPop(out
var
pooledStream))
727
if (_streams.TryGetValue(_incomingFrame.StreamId, out
var
stream))
764
private Http2ConnectionErrorException CreateReceivedFrameStreamAbortedException(
Http2Stream
stream)
812
if (_streams.TryGetValue(_incomingFrame.StreamId, out
var
stream))
892
private
Http2Stream
GetStream<TContext>(IHttpApplication<TContext> application) where TContext : notnull
894
if (StreamPool.TryPop(out
var
stream))
974
if (_streams.TryGetValue(_incomingFrame.StreamId, out
var
stream))
1046
foreach (
var
stream in _streams.Values)
1173
else if (_streams.TryGetValue(_incomingFrame.StreamId, out
var
stream))
1423
if (_streams.TryGetValue(streamId, out
var
stream))
1441
void IHttp2StreamLifetimeHandler.OnStreamCompleted(
Http2Stream
stream)
1449
Http2Stream
? firstRequedStream = null;
1452
while (_completedStreams.TryDequeue(out
var
stream))
1490
private void RemoveStream(
Http2Stream
stream)
1515
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);