deno.land / x / deno@v1.28.2 / cli / bench / testdata / npm / hono / dist / request.d.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import type { Body } from './utils/body';import type { Cookie } from './utils/cookie';declare global { interface Request<ParamKeyType extends string = string> { param: { (key: ParamKeyType): string; (): Record<ParamKeyType, string>; }; paramData?: Record<ParamKeyType, string>; query: { (key: string): string; (): Record<string, string>; }; queries: { (key: string): string[]; (): Record<string, string[]>; }; header: { (name: string): string; (): Record<string, string>; }; cookie: { (name: string): string; (): Cookie; }; parsedBody?: Promise<Body>; parseBody: { (): Promise<Body>; }; }}export declare function extendRequestPrototype(): void;
deno

Version Info

Tagged at
2 years ago