6 implementations of ContentType
Microsoft.AspNetCore.Server.HttpSys (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
398public StringValues ContentType
Microsoft.AspNetCore.Server.IIS (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
398public StringValues ContentType
Microsoft.AspNetCore.Server.Kestrel.Core (3)
Internal\Http\HttpHeaders.Generated.cs (3)
932StringValues IHeaderDictionary.ContentType 8843StringValues IHeaderDictionary.ContentType 16122StringValues IHeaderDictionary.ContentType
Microsoft.AspNetCore.Shared.Tests (1)
src\Shared\HttpSys\RequestProcessing\RequestHeaders.Generated.cs (1)
398public StringValues ContentType
22 writes to ContentType
Binding.Http.IntegrationTests (1)
MtomBindingTestHelper.cs (1)
58context.Response.Headers.ContentType = "multipart/related; type=\"application/xop+xml\";start=\"<http://tempuri.org/0>\";boundary=\"uuid:fca834ef-6b4a-43c0-a7d0-09064d2827e8+id=1\";start-info=\"text/xml\"";
HttpAbstractions.SampleApp (1)
Program.cs (1)
20request.Headers.ContentType = "application/json";
Microsoft.AspNetCore.Http (4)
FormFile.cs (1)
49set { Headers.ContentType = value; }
Internal\DefaultHttpRequest.cs (1)
147set { Headers.ContentType = value; }
Internal\DefaultHttpResponse.cs (2)
103HttpResponseFeature.Headers.ContentType = default; 107HttpResponseFeature.Headers.ContentType = value;
Microsoft.AspNetCore.Http.Extensions.Tests (2)
HeaderDictionaryTypeExtensionsTest.cs (2)
14context.Request.Headers.ContentType = "text/plain"; 36context.Request.Headers.ContentType = "invalid";
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
EndToEndBenchmarks.cs (1)
61_headers.ContentType = "text/html;charset=utf-8";
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Http3\Http3QPackEncoderTests.cs (2)
82headers.ContentType = "application/json"; 139headers.ContentType = "application/custom";
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (11)
Http2\HPackHeaderWriterBenchmark.cs (1)
32knownHeaders.ContentType = "application/json";
Http2\Http2FrameWriterBenchmark.cs (1)
60headers.ContentType = "application/json";
Http2\Http2HeadersEnumeratorBenchmark.cs (2)
28_knownSingleValueResponseHeaders.ContentType = "Value"; 35_knownMultipleValueResponseHeaders.ContentType = new StringValues(new[] { "One", "Two" });
Http3\QPackDecoderBenchmark.cs (1)
39((IHeaderDictionary)headers).ContentType = "application/json";
ResponseHeadersWritingBenchmark.cs (6)
72responseHeaders.ContentType = "text/plain"; 86responseHeaders.ContentType = "text/plain"; 100responseHeaders.ContentType = "text/html; charset=utf-8"; 116responseHeaders.ContentType = "text/css"; 150responseHeaders.ContentType = "text/plain"; 165responseHeaders.ContentType = "text/plain";
9 references to ContentType
Microsoft.AspNetCore.Http (3)
FormFile.cs (1)
48get { return Headers.ContentType.ToString(); }
Internal\DefaultHttpRequest.cs (1)
146get { return Headers.ContentType; }
Internal\DefaultHttpResponse.cs (1)
97return Headers.ContentType;
Microsoft.AspNetCore.Mvc.Core.Test (3)
Infrastructure\ObjectResultExecutorTest.cs (3)
301actionContext.HttpContext.Response.Headers.ContentType); 395Assert.Equal(expectedContentType, actionContext.HttpContext.Response.Headers.ContentType); 432var responseContentType = actionContext.HttpContext.Response.Headers.ContentType;
Microsoft.AspNetCore.Server.Kestrel.Microbenchmarks (3)
HeaderCollectionBenchmark.cs (3)
249value = headers.ContentType; 271value = headers.ContentType; 309value = headers.ContentType;