148 instantiations of MediaTypeHeaderValue
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Http (2)
Microsoft.AspNetCore.Http.Connections (1)
Microsoft.AspNetCore.Http.Extensions (2)
Microsoft.AspNetCore.Http.Extensions.Tests (4)
Microsoft.AspNetCore.Http.Results.Tests (4)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (22)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (1)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (3)
Microsoft.AspNetCore.OpenApi.Tests (2)
Microsoft.Net.Http.Headers (4)
Microsoft.Net.Http.Headers.Tests (86)
SimpleWebSite (1)
XmlFormattersWebSite (12)
457 references to MediaTypeHeaderValue
BasicWebSite (4)
FormatterWebSite (1)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Diagnostics (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Microsoft.AspNetCore.HeaderParsing (10)
Microsoft.AspNetCore.HeaderParsing.Tests (3)
Microsoft.AspNetCore.Http (9)
Microsoft.AspNetCore.Http.Abstractions (1)
Microsoft.AspNetCore.Http.Extensions (22)
Microsoft.AspNetCore.Http.Extensions.Tests (10)
Microsoft.AspNetCore.Http.Results (6)
Microsoft.AspNetCore.Http.Results.Tests (16)
ContentResultTests.cs (4)
33public static TheoryData<MediaTypeHeaderValue, string, string, string, byte[]> ContentResultContentTypeData
38return new TheoryData<MediaTypeHeaderValue, string, string, string, byte[]>
55MediaTypeHeaderValue.Parse("text/foo;p1=p1-value"),
103MediaTypeHeaderValue contentType,
Microsoft.AspNetCore.HttpLogging (11)
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (8)
Microsoft.AspNetCore.Mvc.Core (42)
Microsoft.AspNetCore.Mvc.Core.Test (92)
ContentResultTest.cs (5)
45public static TheoryData<MediaTypeHeaderValue, string, string, string, byte[]> ContentResultContentTypeData
50return new TheoryData<MediaTypeHeaderValue, string, string, string, byte[]>
67MediaTypeHeaderValue.Parse("text/foo;p1=p1-value"),
115MediaTypeHeaderValue contentType,
234var encoding = MediaTypeHeaderValue.Parse(contentType).Encoding;
Formatters\ResponseContentTypeHelperTest.cs (8)
12public static TheoryData<MediaTypeHeaderValue, string, string> ResponseContentTypeData
17return new TheoryData<MediaTypeHeaderValue, string, string>
37MediaTypeHeaderValue.Parse("text/foo; charset=us-ascii"),
45MediaTypeHeaderValue.Parse("text/foo; p1=p1-value"),
53MediaTypeHeaderValue.Parse("text/foo; p1=p1-value; charset=us-ascii"),
84MediaTypeHeaderValue.Parse("text/foo; charset=us-ascii"),
89MediaTypeHeaderValue.Parse("text/foo; charset=us-ascii"),
100MediaTypeHeaderValue contentType,
Microsoft.AspNetCore.Mvc.Core.TestCommon (4)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (10)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (14)
Microsoft.AspNetCore.Mvc.RazorPages (10)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (12)
ViewExecutorTest.cs (8)
21public static TheoryData<MediaTypeHeaderValue, string, string> ViewExecutorSetsContentTypeAndEncodingData
25return new TheoryData<MediaTypeHeaderValue, string, string>
38MediaTypeHeaderValue.Parse("text/foo; charset=us-ascii"),
43MediaTypeHeaderValue.Parse("text/foo; p1=p1-value"),
48MediaTypeHeaderValue.Parse("text/foo; p1=p1-value; charset=us-ascii"),
68MediaTypeHeaderValue.Parse("text/foo; charset=us-ascii"),
73MediaTypeHeaderValue.Parse("text/foo; charset=us-ascii"),
122MediaTypeHeaderValue contentType,
Microsoft.AspNetCore.WebUtilities (2)
Microsoft.Net.Http.Headers (60)
Microsoft.Net.Http.Headers.Tests (103)