Table of Contents

IsGetOrHeadMethod Method

Definition

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

decorator IDecorator<HttpRequest>

The IDecorator<T> to extend.

Returns

bool

true if the enclosed HttpRequest of the decorator is served by either a GET or a HEAD method; otherwise, false.

Exceptions

ArgumentNullException

decorator cannot be null.