7 references to DefaultStringEncoding
System.Net.Http (7)
System\Net\Http\HttpContent.cs (1)
212
encoding =
DefaultStringEncoding
;
System\Net\Http\StringContent.cs (6)
23
: this(content,
DefaultStringEncoding
, DefaultMediaType)
31
: this(content,
DefaultStringEncoding
, mediaType)
51
Debug.Assert(
DefaultStringEncoding
.WebName == "utf-8");
53
encoding ??=
DefaultStringEncoding
;
57
if (ReferenceEquals(encoding,
DefaultStringEncoding
))
97
return (encoding ??
DefaultStringEncoding
).GetBytes(content);