5 references to ReplaceEncoding
Microsoft.AspNetCore.Grpc.JsonTranscoding (2)
Internal\JsonRequestHelpers.cs (1)
92
response.ContentType = MediaType.
ReplaceEncoding
("application/json", encoding);
Internal\JsonTranscodingServerCallContext.cs (1)
239
HttpContext.Response.ContentType = contentType ?? MediaType.
ReplaceEncoding
("application/json", RequestEncoding);
Microsoft.AspNetCore.Mvc.Core (2)
Formatters\TextOutputFormatter.cs (2)
44
cache.Add(mediaType, MediaType.
ReplaceEncoding
(mediaType, Encoding.UTF8));
189
return MediaType.
ReplaceEncoding
(mediaType, encoding);
Microsoft.AspNetCore.Mvc.Core.Test (1)
Formatters\MediaTypeTest.cs (1)
143
var result = MediaType.
ReplaceEncoding
(mediaType, encoding);