59 if ((
object)
this !=
Get && (
object)
this !=
Head && (
object)
this !=
Connect && (
object)
this !=
Options)
61 return (
object)
this !=
Delete;
72 ref
byte[] http3EncodedBytes;
78 if (http3Index.HasValue)
80 int valueOrDefault = http3Index.GetValueOrDefault();
81 if (valueOrDefault >= 0)
102 if (
string.IsNullOrEmpty(method))
121 if ((
object)
other ==
null)
132 public override bool Equals([NotNullWhen(
true)]
object?
obj)
153 if ((
object)left !=
null && (
object)right !=
null)
155 return left.
Equals(right);
157 return (
object)left == right;
162 return !(left == right);
168 if (!http3Index.HasValue && method.
_method.Length >= 3)
177 112 => method._method.Length
switch
HttpMethod(string method)
static readonly HttpMethod s_patchMethod
static HttpMethod Options
static readonly HttpMethod s_optionsMethod
static readonly HttpMethod s_postMethod
HttpMethod(string method, int http3StaticTableIndex)
byte[] _http3EncodedBytes
bool Equals([NotNullWhen(true)] HttpMethod? other)
override bool Equals([NotNullWhen(true)] object? obj)
static readonly HttpMethod s_traceMethod
static readonly HttpMethod s_connectMethod
readonly? int _http3Index
static readonly HttpMethod s_headMethod
static HttpMethod Normalize(HttpMethod method)
static readonly HttpMethod s_deleteMethod
override int GetHashCode()
static bool operator!=(HttpMethod? left, HttpMethod? right)
override string ToString()
static readonly HttpMethod s_getMethod
static HttpMethod Connect
static readonly HttpMethod s_putMethod
static bool operator==(HttpMethod? left, HttpMethod? right)
static int GetTokenLength(string input, int startIndex)
static byte[] EncodeStaticIndexedHeaderFieldToArray(int index)
static byte[] EncodeLiteralHeaderFieldWithStaticNameReferenceToArray(int index)
static string net_http_argument_empty_string
static string net_http_httpmethod_format_error
static StringComparer OrdinalIgnoreCase
static bool Read(ref bool location)
static void Write(ref bool location, bool value)