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

◆ CheckAgent()

static void System.Net.Http.Headers.WarningHeaderValue.CheckAgent ( string agent)
inlinestaticprivate

Definition at line 241 of file WarningHeaderValue.cs.

242 {
243 if (string.IsNullOrEmpty(agent))
244 {
246 }
247 if (HttpRuleParser.GetHostLength(agent, 0, allowToken: true, out var _) != agent.Length)
248 {
250 }
251 }
static CultureInfo InvariantCulture
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
static string net_http_headers_invalid_value
Definition SR.cs:26
static string net_http_argument_empty_string
Definition SR.cs:52
Definition SR.cs:7

References System.SR.Format(), System.Net.Http.HttpRuleParser.GetHostLength(), System.Globalization.CultureInfo.InvariantCulture, System.SR.net_http_argument_empty_string, and System.SR.net_http_headers_invalid_value.

Referenced by System.Net.Http.Headers.WarningHeaderValue.WarningHeaderValue(), and System.Net.Http.Headers.WarningHeaderValue.WarningHeaderValue().