UNPKG

@halsp/http

Version:

支持 Halsp HTTP 请求

19 lines (18 loc) 547 B
import { Context, Register } from "@halsp/core"; import { HttpOptions } from "./options"; export interface ParsedRegister { methods: string[]; url: string; handler?: Register["handler"]; } export declare class MapMatcher { #private; private readonly ctx; private readonly options; constructor(ctx: Context, options: HttpOptions); match(): Promise<void>; private getRegister; private isPathMatched; private getMostLikeRegister; } export declare function parsePattern(register: Register): ParsedRegister;