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