Exemplo n.º 1
0
 public static HttpRequestMessage AcceptCharset(this HttpRequestMessage req, Encoding charset) =>
 req.AcceptCharset(charset.WebName);
Exemplo n.º 2
0
 public static HttpRequestMessage AcceptUtf8(this HttpRequestMessage req) => req.AcceptCharset(System.Text.Encoding.UTF8);
Exemplo n.º 3
0
 public static HttpRequestMessage AcceptCharset(this HttpRequestMessage req, string charset) =>
 req.AcceptCharset(new StringWithQualityHeaderValue(charset));