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

◆ Connection

string? System.Net.HttpWebRequest.Connection
getset

Definition at line 506 of file HttpWebRequest.cs.

507 {
508 get
509 {
510 return _webHeaderCollection["Connection"];
511 }
512 set
513 {
514 if (string.IsNullOrWhiteSpace(value))
515 {
516 _webHeaderCollection.Remove("Connection");
517 return;
518 }
519 bool flag = value.IndexOf("keep-alive", StringComparison.OrdinalIgnoreCase) != -1;
520 bool flag2 = value.IndexOf("close", StringComparison.OrdinalIgnoreCase) != -1;
521 if (flag || flag2)
522 {
523 throw new ArgumentException(System.SR.net_connarg, "value");
524 }
526 _webHeaderCollection["Connection"] = value2;
527 }
528 }
static string CheckBadHeaderValueChars(string value)
WebHeaderCollection _webHeaderCollection
void Remove(HttpRequestHeader header)
static string net_connarg
Definition SR.cs:50
Definition SR.cs:7