effect-io-ai

Package: @effect/platform
Module: HttpMethod

HttpMethod.isHttpMethod

Tests if a value is a HttpMethod.

Example

import { HttpMethod } from "@effect/platform"

console.log(HttpMethod.isHttpMethod("GET"))
// true
console.log(HttpMethod.isHttpMethod("get"))
// false
console.log(HttpMethod.isHttpMethod(1))
// false

Signature

declare const isHttpMethod: (u: unknown) => u is HttpMethod

Source

Since v1.0.0