14 references to MediaTypeHeaderValue
Interop.FunctionalTests (1)
Http3\Http3RequestTests.cs (1)
372requestContent.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("text/plain");
Microsoft.AspNetCore.HttpLogging.Tests (2)
HttpLoggingMiddlewareTests.cs (2)
1777request.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("text/plain"); 1867request.Content.Headers.ContentType = new System.Net.Http.Headers.MediaTypeHeaderValue("text/plain");
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
SimpleWithWebApplicationBuilderTests.cs (2)
234request.Content.Headers.ContentType = new("application/xml"); 249request.Content.Headers.ContentType = new("application/xml");
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (2)
NoRemoteCallHandler.cs (1)
44response.Content.Headers.ContentType = new("application/json");
NoRemoteCallNotSeekableHandler.cs (1)
47response.Content.Headers.ContentType = new("application/json");
Microsoft.Extensions.Http.Diagnostics.Tests (3)
Logging\HttpHeadersReaderTest.cs (2)
132requestContent.Headers.ContentType = new(MediaTypeNames.Application.Soap); 141responseContent.Headers.ContentType = new(MediaTypeNames.Text.Html);
Logging\Internal\NoRemoteCallHandler.cs (1)
38response.Content.Headers.ContentType = new("application/json");
System.Net.Http (4)
System\Net\Http\FormUrlEncodedContent.cs (1)
23Headers.ContentType = new MediaTypeHeaderValue("application/x-www-form-urlencoded");
System\Net\Http\Headers\MediaTypeWithQualityHeaderValue.cs (2)
24: base(mediaType) 29: base(mediaType)
System\Net\Http\MultipartContent.cs (1)
57MediaTypeHeaderValue contentType = new MediaTypeHeaderValue("multipart/" + subtype);