1 write to _context
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\Http\Http1MessageBody.cs (1)
23
_context
= context;
47 references to _context
Microsoft.AspNetCore.Server.Kestrel.Core (47)
Internal\Http\Http1ChunkedEncodingMessageBody.cs (9)
97
var awaitable =
_context
.Input.ReadAsync();
108
if (
_context
.RequestTimedOut)
140
KestrelMetrics.AddConnectionEndReason(
_context
.MetricsContext, ConnectionEndReason.UnexpectedEndOfRequestContent);
146
_context
.Input.AdvanceTo(consumed, examined);
149
awaitable =
_context
.Input.ReadAsync();
164
if (!
_context
.HasStartedConsumingRequestBody)
189
_context
.Input.CancelPendingRead();
275
if (
_context
.TakeMessageHeaders(ref reader, trailers: true))
467
_context
.OnTrailersComplete();
Internal\Http\Http1ContentLengthMessageBody.cs (15)
44
if (
_context
.RequestTimedOut)
59
var readAwaitable =
_context
.Input.ReadAsync(cancellationToken);
78
_context
.Input.AdvanceTo(_readResult.Buffer.Start);
82
if (
_context
.RequestTimedOut)
130
if (
_context
.RequestTimedOut)
140
if (!
_context
.Input.TryRead(out _readResult))
151
_context
.Input.AdvanceTo(_readResult.Buffer.Start);
162
_context
.Input.AdvanceTo(_readResult.Buffer.Start);
223
_context
.Input.AdvanceTo(consumed);
225
_context
.OnTrailersComplete();
241
_context
.Input.AdvanceTo(consumed, examined);
246
var maxRequestBodySize =
_context
.MaxRequestBodySize;
249
_context
.DisableKeepAlive(ConnectionEndReason.MaxRequestBodySizeExceeded);
257
_context
.Input.CancelPendingRead();
275
if (
_context
.RequestTimedOut)
Internal\Http\Http1MessageBody.cs (18)
46
_context
.ReportApplicationError(exception);
67
_context
.SetBadRequestState(ex);
72
Log.RequestBodyDrainBodyReaderInvalidState(
_context
.ConnectionIdFeature,
_context
.TraceIdentifier, ex);
75
_context
.StopProcessingNextRequest(ConnectionEndReason.InvalidBodyReaderState);
84
Log.RequestBodyNotEntirelyRead(
_context
.ConnectionIdFeature,
_context
.TraceIdentifier);
86
_context
.TimeoutControl.SetTimeout(Constants.RequestBodyDrainTimeout, TimeoutReason.RequestBodyDrain);
99
_context
.SetBadRequestState(ex);
103
Log.RequestBodyDrainTimedOut(
_context
.ConnectionIdFeature,
_context
.TraceIdentifier);
107
Log.RequestBodyDrainBodyReaderInvalidState(
_context
.ConnectionIdFeature,
_context
.TraceIdentifier, ex);
110
_context
.StopProcessingNextRequest(ConnectionEndReason.InvalidBodyReaderState);
114
_context
.TimeoutControl.CancelTimeout();
120
_context
.DisableKeepAlive(ConnectionEndReason.MaxRequestBodySizeExceeded);
231
KestrelMetrics.AddConnectionEndReason(
_context
.MetricsContext, ConnectionEndReason.UnexpectedEndOfRequestContent);
238
((IHttpOutputAborter)
_context
).OnInputOrOutputCompleted();
Internal\Http\Http1UpgradeMessageBody.cs (5)
40
_context
.Input.AdvanceTo(consumed, examined);
46
_context
.Input.CancelPendingRead();
64
if (!
_context
.Input.TryRead(out readResult))
80
var readTask =
_context
.Input.ReadAsync(cancellationToken);
101
readResult = await
_context
.Input.ReadAsync(cancellationToken);