UNPKG

@httpx/assert

Version:
11 lines (8 loc) 362 B
import { H as HttpMethod } from './http.types-J36zpW89.js'; /** * Check whether the value is a valid http method (GET, PUT...) in * a case-insensitive manner. */ declare const isHttpValidMethod: (v: unknown) => v is HttpMethod; declare const isHttpMethod: <T extends HttpMethod>(method: T, v: unknown) => v is T; export { isHttpMethod, isHttpValidMethod };