@halsp/http
Version:
支持 Halsp HTTP 请求
20 lines (19 loc) • 731 B
TypeScript
export declare class HttpMethods {
static readonly any = "ANY";
static readonly get = "GET";
static readonly post = "POST";
static readonly put = "PUT";
static readonly delete = "DELETE";
static readonly patch = "PATCH";
static readonly head = "HEAD";
static readonly options = "OPTIONS";
static readonly trace = "TRACE";
static readonly connect = "CONNECT";
static readonly move = "MOVE";
static readonly copy = "COPY";
static readonly link = "LINK";
static readonly unlink = "UNLINK";
static readonly wrapped = "WRAPPED";
static matched(method: string, customMethods?: string[]): string | undefined;
static equal(method1?: string, method2?: string): boolean;
}