belgattitude/httpx

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

Summary

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

***

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

# Function: isHttpMethod()

> **isHttpMethod**\<`T`\>(`method`, `v`): `v is T`

## Type Parameters

• **T** *extends* [`HttpMethod`](../../http.types/type-aliases/HttpMethod.md)

## Parameters

• **method**: `T`

• **v**: `unknown`

## Returns

`v is T`

## Defined in

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