Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ TransferEncoding

string? System.Net.HttpWebRequest.TransferEncoding
getset

Definition at line 390 of file HttpWebRequest.cs.

391 {
392 get
393 {
394 return _webHeaderCollection["Transfer-Encoding"];
395 }
396 set
397 {
398 if (string.IsNullOrWhiteSpace(value))
399 {
400 _webHeaderCollection.Remove("Transfer-Encoding");
401 return;
402 }
403 if (value.IndexOf("chunked", StringComparison.OrdinalIgnoreCase) != -1)
404 {
405 throw new ArgumentException(System.SR.net_nochunked, "value");
406 }
407 if (!SendChunked)
408 {
410 }
412 _webHeaderCollection["Transfer-Encoding"] = value2;
413 }
414 }
static string CheckBadHeaderValueChars(string value)
WebHeaderCollection _webHeaderCollection
void Remove(HttpRequestHeader header)
static string net_nochunked
Definition SR.cs:58
static string net_needchunked
Definition SR.cs:54
Definition SR.cs:7