@@ -49,6 +49,10 @@ public static class HttpMethods
49
49
/// </summary>
50
50
public static readonly string Put = "PUT" ;
51
51
/// <summary>
52
+ /// HTTP "QUERY" method.
53
+ /// </summary>
54
+ public static readonly string Query = "QUERY" ;
55
+ /// <summary>
52
56
/// HTTP "TRACE" method.
53
57
/// </summary>
54
58
public static readonly string Trace = "TRACE" ;
@@ -149,6 +153,18 @@ public static bool IsPut(string method)
149
153
return Equals ( Put , method ) ;
150
154
}
151
155
156
+ /// <summary>
157
+ /// Returns a value that indicates if the HTTP request method is QUERY.
158
+ /// </summary>
159
+ /// <param name="method">The HTTP request method.</param>
160
+ /// <returns>
161
+ /// <see langword="true" /> if the method is QUERY; otherwise, <see langword="false" />.
162
+ /// </returns>
163
+ public static bool IsQuery ( string method )
164
+ {
165
+ return Equals ( Query , method ) ;
166
+ }
167
+
152
168
/// <summary>
153
169
/// Returns a value that indicates if the HTTP request method is TRACE.
154
170
/// </summary>
@@ -175,6 +191,7 @@ string _ when IsDelete(method) => Delete,
175
191
string _ when IsOptions ( method ) => Options ,
176
192
string _ when IsHead ( method ) => Head ,
177
193
string _ when IsPatch ( method ) => Patch ,
194
+ string _ when IsQuery ( method ) => Query ,
178
195
string _ when IsTrace ( method ) => Trace ,
179
196
string _ when IsConnect ( method ) => Connect ,
180
197
string _ => method
0 commit comments