8 references to DefaultHttpEncoding
System.Net.Http (8)
System\Net\Http\FormUrlEncodedContent.cs (1)
48
HttpRuleParser.
DefaultHttpEncoding
.GetBytes(builder.AsSpan(), bytes);
System\Net\Http\Headers\HeaderDescriptor.cs (1)
172
return (valueEncoding ?? HttpRuleParser.
DefaultHttpEncoding
).GetString(headerValue);
System\Net\Http\MultipartContent.cs (5)
319
Encoding headerValueEncoding = HeaderEncodingSelector?.Invoke(headerPair.Key, content) ?? HttpRuleParser.
DefaultHttpEncoding
;
339
byte[] buffer = HttpRuleParser.
DefaultHttpEncoding
.GetBytes(input);
345
return new MemoryStream(HttpRuleParser.
DefaultHttpEncoding
.GetBytes(input), writable: false);
376
Encoding headerValueEncoding = HeaderEncodingSelector?.Invoke(headerPair.Key, content) ?? HttpRuleParser.
DefaultHttpEncoding
;
640
WriteToStream(stream, content, HttpRuleParser.
DefaultHttpEncoding
);
System\Net\Http\SocketsHttpHandler\HttpConnection.cs (1)
1115
response.ReasonPhrase = HttpRuleParser.
DefaultHttpEncoding
.GetString(reasonBytes);