1 write to RequestEncoding
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Internal\JsonTranscodingServerCallContext.cs (1)
52
RequestEncoding
= JsonRequestHelpers.GetEncodingFromCharset(charset) ?? Encoding.UTF8;
4 references to RequestEncoding
Microsoft.AspNetCore.Grpc.JsonTranscoding (4)
Internal\JsonRequestHelpers.cs (2)
209
var (stream, usesTranscodingStream) = GetStream(serverCallContext.HttpContext.Request.Body, serverCallContext.
RequestEncoding
);
395
await JsonRequestHelpers.WriteResponseMessage(response, serverCallContext.
RequestEncoding
, responseBody, serializerOptions, cancellationToken);
Internal\JsonTranscodingServerCallContext.cs (2)
129
await JsonRequestHelpers.SendErrorResponse(HttpContext.Response,
RequestEncoding
, ResponseTrailers, status, options);
239
HttpContext.Response.ContentType = contentType ?? MediaType.ReplaceEncoding("application/json",
RequestEncoding
);