IsGetOrHeadMethod Method
Definition
- Namespace
- Cuemon.Extensions.AspNetCore.Http
- Assemblies
- Cuemon.Extensions.AspNetCore.dll
IsGetOrHeadMethod(HttpRequest)
Determines whether the specified request is served by either a GET or a HEAD method.
public static bool IsGetOrHeadMethod(this HttpRequest request)
Parameters
requestHttpRequestAn instance of the HttpRequest object.
Returns
- bool
trueif the specifiedrequestis served by either a GET or a HEAD method; otherwise,false.
Exceptions
- ArgumentNullException
requestcannot be null.