HttpMethod
Models
HttpMethod
Added in v1.0.0
Source
HttpMethod type
Added in v1.0.0
Source
Signature
type HttpMethod = "GET" | "POST" | "PUT" | "DELETE" | "PATCH" | "HEAD" | "OPTIONS"Other
Refinements
isHttpMethod
Added in v1.0.0
Source
Tests if a value is a HttpMethod.
Signature
declare function isHttpMethod(u: unknown): u is HttpMethodExample
import { HttpMethod } from "@effect/platform"
console.log(HttpMethod.isHttpMethod("GET"))// trueconsole.log(HttpMethod.isHttpMethod("get"))// falseconsole.log(HttpMethod.isHttpMethod(1))// false