Package: @effect/platform
Module: HttpMethod
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
Since v1.0.0