1 override of HasFormContentType
Microsoft.AspNetCore.Http (1)
Internal\DefaultHttpRequest.cs (1)
150public override bool HasFormContentType
24 references to HasFormContentType
Microsoft.AspNetCore.Antiforgery (2)
Internal\DefaultAntiforgery.cs (1)
163else if (!httpContext.Request.HasFormContentType)
Internal\DefaultAntiforgeryTokenStore.cs (1)
51if (requestToken.Count == 0 && httpContext.Request.HasFormContentType && !_options.SuppressReadingTokenFromFormBody)
Microsoft.AspNetCore.Antiforgery.Test (2)
DefaultAntiforgeryTokenStoreTest.cs (2)
300httpContext.SetupGet(r => r.Request.HasFormContentType).Returns(true); 325httpContext.SetupGet(r => r.Request.HasFormContentType).Returns(true);
Microsoft.AspNetCore.Components.Endpoints (1)
RazorComponentEndpointInvoker.cs (1)
81form: result.HandlerName != null && context.Request.HasFormContentType ? await context.Request.ReadFormAsync() : null);
Microsoft.AspNetCore.Components.Server (1)
CircuitDisconnectMiddleware.cs (1)
56if (!context.Request.HasFormContentType)
Microsoft.AspNetCore.Http (1)
RequestFormReaderExtensions.cs (1)
27if (!request.HasFormContentType)
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactory.cs (1)
1518if (!httpContext.Request.HasFormContentType)
Microsoft.AspNetCore.HttpOverrides (1)
HttpMethodOverrideMiddleware.cs (1)
42if (context.Request.HasFormContentType)
Microsoft.AspNetCore.Mvc.Core (6)
ModelBinding\Binders\BodyModelBinder.cs (1)
232if (formatterContext.HttpContext.Request.HasFormContentType)
ModelBinding\Binders\FormCollectionModelBinder.cs (1)
41if (request.HasFormContentType)
ModelBinding\Binders\FormFileModelBinder.cs (1)
141if (request.HasFormContentType)
ModelBinding\FormFileValueProviderFactory.cs (1)
22if (request.HasFormContentType)
ModelBinding\FormValueProviderFactory.cs (1)
23if (request.HasFormContentType)
ModelBinding\JQueryFormValueProviderFactory.cs (1)
23if (request.HasFormContentType)
Microsoft.AspNetCore.Mvc.Core.Test (7)
ModelBinding\Binders\FormCollectionModelBinderTest.cs (1)
62httpContext.Setup(h => h.Request.HasFormContentType).Returns(hasForm);
ModelBinding\Binders\FormFileModelBinderTest.cs (1)
477httpContext.Setup(h => h.Request.HasFormContentType).Returns(true);
ModelBinding\FormFileValueProviderFactoryTest.cs (1)
106context.Setup(c => c.Request.HasFormContentType).Returns(true);
ModelBinding\FormValueProviderFactoryTest.cs (2)
94context.Setup(c => c.Request.HasFormContentType).Returns(true); 106if (context.Request.HasFormContentType)
ModelBinding\JQueryFormValueProviderFactoryTest.cs (2)
179context.Setup(c => c.Request.HasFormContentType).Returns(true); 191if (context.Request.HasFormContentType)
Microsoft.AspNetCore.Mvc.IntegrationTests (2)
ComplexRecordIntegrationTest.cs (1)
4215if (request.HasFormContentType)
ComplexTypeIntegrationTestBase.cs (1)
3714if (request.HasFormContentType)