Table of Contents

IsGetOrHeadMethod Method

Definition

Namespace
Cuemon.Extensions.AspNetCore.Http
Assemblies
Cuemon.Extensions.AspNetCore.dll
Source
src/Cuemon.Extensions.AspNetCore/Http/HttpRequestExtensions.cs

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

request HttpRequest

An instance of the HttpRequest object.

Returns

bool

true if the specified request is served by either a GET or a HEAD method; otherwise, false.

Exceptions

ArgumentNullException

request cannot be null.