UNPKG

@halsp/http

Version:

支持 Halsp HTTP 请求

16 lines (15 loc) 582 B
import { Dict, ReadonlyDict } from "@halsp/core"; import { HeaderHandler } from "./header-handler"; import { ReadonlyHeadersDict } from "../types"; declare module "@halsp/core" { interface Request extends HeaderHandler { get headers(): ReadonlyHeadersDict; get overrideMethod(): string | undefined; get method(): string; setMethod(method: string): this; get query(): ReadonlyDict<string>; setQuery(key: string, value: string): this; setQuery(query: Dict<string>): this; get params(): ReadonlyDict<string>; } }