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

◆ HttpMethod() [1/2]

System.Net.Http.HttpMethod.HttpMethod ( string method)
inline

Definition at line 100 of file HttpMethod.cs.

101 {
102 if (string.IsNullOrEmpty(method))
103 {
105 }
106 if (HttpRuleParser.GetTokenLength(method, 0) != method.Length)
107 {
108 throw new FormatException(System.SR.net_http_httpmethod_format_error);
109 }
110 _method = method;
111 }
readonly string _method
Definition HttpMethod.cs:9
static string net_http_argument_empty_string
Definition SR.cs:52
static string net_http_httpmethod_format_error
Definition SR.cs:14
Definition SR.cs:7

References System.Net.Http.HttpMethod._method, System.Net.Http.HttpRuleParser.GetTokenLength(), System.SR.net_http_argument_empty_string, and System.SR.net_http_httpmethod_format_error.