belgattitude/httpx

View on GitHub
packages/assert/docs/api/http.guards/functions/isHttpValidMethod.md

Summary

Maintainability
Test Coverage
[**@httpx/assert v0.12.4**](../../README.md) • **Docs**

***

[@httpx/assert v0.12.4](../../README.md) / [http.guards](../README.md) / isHttpValidMethod

# Function: isHttpValidMethod()

> **isHttpValidMethod**(`v`): `v is HttpMethod`

Check whether the value is a valid http method (GET, PUT...) in
a case-insensitive manner.

## Parameters

• **v**: `unknown`

## Returns

`v is HttpMethod`

## Defined in

[http.guards.ts:8](https://github.com/belgattitude/httpx/blob/acde85be3548fccd6cc1a311d7f8d4419e2b6ce0/packages/assert/src/http.guards.ts#L8)