IsGetOrHeadMethod Method
Definition
- Namespace
- Cuemon.AspNetCore.Http
- Assemblies
- Cuemon.AspNetCore.dll
IsGetOrHeadMethod(IDecorator<HttpRequest>)
Determines whether the enclosed HttpRequest of the decorator is served by either a GET or a HEAD method.
public static bool IsGetOrHeadMethod(this IDecorator<HttpRequest> decorator)
Parameters
decoratorIDecorator<HttpRequest>The IDecorator<T> to extend.
Returns
- bool
trueif the enclosed HttpRequest of thedecoratoris served by either a GET or a HEAD method; otherwise,false.
Exceptions
- ArgumentNullException
decoratorcannot be null.