1 override of ContentType
Microsoft.AspNetCore.Http (1)
256 writes to ContentType
Aspire.Dashboard (1)
AzureAppServicesHostingStartupSample (1)
AzureAppServicesSample (1)
BasicWebSite (3)
Benchmarks (2)
CookiePolicySample (1)
CookieSample (2)
CookieSessionSample (2)
CorsMiddlewareWebSite (1)
ExceptionHandlerSample (3)
FormatterWebSite (2)
HealthChecksSample (1)
HotAddSample (3)
HttpAbstractions.SampleApp (1)
HttpLogging.Sample (1)
IIS.Microbenchmarks (1)
IISSample (1)
InMemory.FunctionalTests (6)
InProcessWebSite (4)
Interop.FunctionalTests (3)
JwtBearerSample (1)
Kestrel.SampleApp (1)
LargeResponseApp (1)
LocalizationSample (1)
Logging.W3C.Sample (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
Microsoft.AspNetCore.Authentication.Test (4)
Microsoft.AspNetCore.Components.Endpoints (4)
Microsoft.AspNetCore.Components.WebAssembly.Server (3)
Microsoft.AspNetCore.Diagnostics (7)
Microsoft.AspNetCore.Diagnostics.EntityFrameworkCore (2)
Microsoft.AspNetCore.Diagnostics.HealthChecks (1)
Microsoft.AspNetCore.Diagnostics.HealthChecks.Tests (2)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Microsoft.AspNetCore.Diagnostics.Tests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.HostFiltering (1)
Microsoft.AspNetCore.Hosting (1)
Microsoft.AspNetCore.Http.Connections (27)
Microsoft.AspNetCore.Http.Connections.Tests (1)
Microsoft.AspNetCore.Http.Extensions (6)
Microsoft.AspNetCore.Http.Extensions.Tests (1)
Microsoft.AspNetCore.Http.Results (3)
Microsoft.AspNetCore.Http.Results.Tests (1)
Microsoft.AspNetCore.HttpLogging.Tests (18)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Mvc.Core (5)
Microsoft.AspNetCore.Mvc.Core.Test (13)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (4)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Microsoft.AspNetCore.OpenApi (3)
Microsoft.AspNetCore.ResponseCompression.Tests (17)
Microsoft.AspNetCore.Rewrite (1)
Microsoft.AspNetCore.Routing (1)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (18)
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (8)
Microsoft.AspNetCore.SpaProxy (1)
Microsoft.AspNetCore.StaticAssets (1)
Microsoft.AspNetCore.StaticFiles (2)
Microsoft.AspNetCore.StaticFiles.Tests (1)
MiddlewareAnalysisSample (1)
NativeIISSample (1)
OpenIdConnectSample (2)
OutputCachingSample (1)
PlaintextApp (1)
QueueSharing (1)
ResponseCompressionSample (3)
RoutingSandbox (3)
RoutingWebSite (8)
SelfHostServer (1)
ServerComparison.TestSites (3)
SignalR.Client.FunctionalTestApp (1)
SignalRSamples (1)
SocialSample (8)
StatusCodePagesSample (2)
SystemdTestApp (1)
WebTransportInteractiveSampleApp (1)
WsFedSample (1)
107 references to ContentType
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (6)
Microsoft.AspNetCore.Hosting (3)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Connections.Tests (8)
Microsoft.AspNetCore.Http.Extensions.Tests (19)
HttpResponseJsonExtensionsTests.cs (16)
32Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
51Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
71Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
103Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
119Assert.Equal("application/custom-type", context.Response.ContentType);
173Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
192Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
255Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
271Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
296Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
324Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
358Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
392Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
426Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
460Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
481Assert.Equal(ContentTypeConstants.JsonContentTypeWithCharset, context.Response.ContentType);
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Results (2)
Microsoft.AspNetCore.Http.Results.Tests (8)
Microsoft.AspNetCore.Http.Tests (1)
Microsoft.AspNetCore.HttpLogging (1)
Microsoft.AspNetCore.Mvc.Core (5)
Microsoft.AspNetCore.Mvc.Core.Test (26)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (9)
Microsoft.AspNetCore.Mvc.ViewFeatures (2)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (6)
Microsoft.AspNetCore.OpenApi.Tests (2)
Microsoft.AspNetCore.ResponseCompression (1)