@httpx/assert
Version:
Assertions and typeguards
11 lines (8 loc) • 363 B
text/typescript
import { H as HttpMethod } from './http.types-J36zpW89.cjs';
/**
* 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 };