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

◆ Add() [4/6]

void System.Net.WebHeaderCollection.Add ( string header)
inline

Definition at line 291 of file WebHeaderCollection.cs.

292 {
293 if (string.IsNullOrEmpty(header))
294 {
295 throw new ArgumentNullException("header");
296 }
297 int num = header.IndexOf(':');
298 if (num < 0)
299 {
301 }
302 string name = header.Substring(0, num);
303 string value = header.Substring(num + 1);
304 name = HttpValidationHelpers.CheckBadHeaderNameChars(name);
305 value = HttpValidationHelpers.CheckBadHeaderValueChars(value);
308 }
static string net_WebHeaderMissingColon
Definition SR.cs:26
Definition SR.cs:7

References System.Collections.Specialized.NameValueCollection.Add(), System.Net.HttpValidationHelpers.CheckBadHeaderNameChars(), System.Net.HttpValidationHelpers.CheckBadHeaderValueChars(), System.Net.WebHeaderCollection.InnerCollection, System.Collections.Specialized.NameValueCollection.InvalidateCachedArrays(), System.SR.net_WebHeaderMissingColon, and System.value.