@@ -49,6 +49,10 @@ public static class HttpMethods
4949 /// </summary>
5050 public static readonly string Put = "PUT" ;
5151 /// <summary>
52+ /// HTTP "QUERY" method.
53+ /// </summary>
54+ public static readonly string Query = "QUERY" ;
55+ /// <summary>
5256 /// HTTP "TRACE" method.
5357 /// </summary>
5458 public static readonly string Trace = "TRACE" ;
@@ -149,6 +153,18 @@ public static bool IsPut(string method)
149153 return Equals ( Put , method ) ;
150154 }
151155
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+
152168 /// <summary>
153169 /// Returns a value that indicates if the HTTP request method is TRACE.
154170 /// </summary>
@@ -175,6 +191,7 @@ string _ when IsDelete(method) => Delete,
175191 string _ when IsOptions ( method ) => Options ,
176192 string _ when IsHead ( method ) => Head ,
177193 string _ when IsPatch ( method ) => Patch ,
194+ string _ when IsQuery ( method ) => Query ,
178195 string _ when IsTrace ( method ) => Trace ,
179196 string _ when IsConnect ( method ) => Connect ,
180197 string _ => method
0 commit comments