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

◆ AddRange() [9/9]

bool System.Net.HttpWebRequest.AddRange ( string rangeSpecifier,
string from,
string to )
inlineprivate

Definition at line 1122 of file HttpWebRequest.cs.

1123 {
1124 string text = _webHeaderCollection["Range"];
1125 if (text == null || text.Length == 0)
1126 {
1127 text = rangeSpecifier + "=";
1128 }
1129 else
1130 {
1131 if (!string.Equals(text.Substring(0, text.IndexOf('=')), rangeSpecifier, StringComparison.OrdinalIgnoreCase))
1132 {
1133 return false;
1134 }
1135 text = string.Empty;
1136 }
1137 text += from.ToString();
1138 if (to != null)
1139 {
1140 text = text + "-" + to;
1141 }
1142 _webHeaderCollection["Range"] = text;
1143 return true;
1144 }
WebHeaderCollection _webHeaderCollection

References System.Net.HttpWebRequest._webHeaderCollection, System.Runtime.Serialization.Dictionary, System.Net.Equals, System.text, and System.Net.WebHeaderCollection.ToString().