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