29 references to Parse
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\ProducesResponseTypeMetadata.cs (1)
39
MediaTypeHeaderValue.
Parse
(contentTypes[i]);
Microsoft.AspNetCore.Http.Results (1)
TypedResults.cs (1)
170
mediaTypeHeaderValue = MediaTypeHeaderValue.
Parse
(contentType);
Microsoft.AspNetCore.HttpLogging (2)
MediaTypeOptions.cs (2)
54
AddText(MediaTypeHeaderValue.
Parse
(contentType));
67
var mediaType = MediaTypeHeaderValue.
Parse
(contentType);
Microsoft.AspNetCore.Mvc.Core (21)
ConsumesAttribute.cs (4)
45
MediaTypeHeaderValue.
Parse
(contentType);
49
MediaTypeHeaderValue.
Parse
(otherContentTypes[i]);
68
MediaTypeHeaderValue.
Parse
(contentType);
72
MediaTypeHeaderValue.
Parse
(otherContentTypes[i]);
ControllerBase.cs (2)
255
=> Content(content, MediaTypeHeaderValue.
Parse
(contentType));
272
var mediaTypeHeaderValue = MediaTypeHeaderValue.
Parse
(contentType);
FileContentResult.cs (1)
27
: this(fileContents, MediaTypeHeaderValue.
Parse
(contentType))
FileStreamResult.cs (1)
27
: this(fileStream, MediaTypeHeaderValue.
Parse
(contentType))
Formatters\FormatterMappings.cs (1)
29
SetMediaTypeMappingForFormat(format, MediaTypeHeaderValue.
Parse
(contentType));
Formatters\MediaTypeHeaderValues.cs (6)
11
= MediaTypeHeaderValue.
Parse
("application/json").CopyAsReadOnly();
14
= MediaTypeHeaderValue.
Parse
("text/json").CopyAsReadOnly();
17
= MediaTypeHeaderValue.
Parse
("application/*+json").CopyAsReadOnly();
20
= MediaTypeHeaderValue.
Parse
("application/xml").CopyAsReadOnly();
23
= MediaTypeHeaderValue.
Parse
("text/xml").CopyAsReadOnly();
26
= MediaTypeHeaderValue.
Parse
("application/*+xml").CopyAsReadOnly();
PhysicalFileResult.cs (1)
26
: this(fileName, MediaTypeHeaderValue.
Parse
(contentType))
ProducesAttribute.cs (2)
42
MediaTypeHeaderValue.
Parse
(contentType);
46
MediaTypeHeaderValue.
Parse
(additionalContentTypes[i]);
ProducesResponseTypeAttribute.cs (2)
56
MediaTypeHeaderValue.
Parse
(contentType);
59
MediaTypeHeaderValue.
Parse
(additionalContentTypes[i]);
VirtualFileResult.cs (1)
27
: this(fileName, MediaTypeHeaderValue.
Parse
(contentType))
Microsoft.AspNetCore.Mvc.RazorPages (4)
PageBase.cs (2)
224
=> Content(content, MediaTypeHeaderValue.
Parse
(contentType));
240
var mediaTypeHeaderValue = MediaTypeHeaderValue.
Parse
(contentType);
PageModel.cs (2)
556
=> Content(content, MediaTypeHeaderValue.
Parse
(contentType));
572
var mediaTypeHeaderValue = MediaTypeHeaderValue.
Parse
(contentType);