1 write to _request
Microsoft.AspNetCore.Http (1)
Features\FormFeature.cs (1)
63
_request
= request;
17 references to _request
Microsoft.AspNetCore.Http (17)
Features\FormFeature.cs (17)
77
if (
_request
is not null)
79
_ = MediaTypeHeaderValue.TryParse(
_request
.ContentType, out mt);
102
if (
_request
is null)
179
if (
_request
is null)
189
throw new InvalidOperationException("Incorrect Content-Type: " +
_request
.ContentType);
194
if (
_request
.ContentLength == 0)
201
_request
.EnableRewind(_options.MemoryBufferThreshold, _options.BufferBodyLengthLimit);
208
using (cancellationToken.Register((state) => ((HttpContext)state!).Abort(),
_request
.HttpContext))
215
var formReader = new FormPipeReader(
_request
.BodyReader, encoding)
229
var multipartReader = new MultipartReader(boundary,
_request
.Body)
255
_request
.HttpContext.Response.RegisterForDispose,
268
file = new FormFile(
_request
.Body, section.BaseStreamOffset.GetValueOrDefault(), section.Body.Length, name, fileName);
313
if (
_request
.Body.CanSeek)
315
_request
.Body.Seek(0, SeekOrigin.Begin);
359
if (
_request
is null)
363
var hasInvokedMiddleware =
_request
.HttpContext.Items.ContainsKey("__AntiforgeryMiddlewareWithEndpointInvoked");
364
var hasInvalidToken =
_request
.HttpContext.Features.Get<IAntiforgeryValidationFeature>() is { IsValid: false };