1 | import { RequestMethod } from '@nestjs/common';
|
2 | import { CorsOptions, CorsOptionsDelegate } from '@nestjs/common/interfaces/external/cors-options.interface';
|
3 | import { NestApplicationOptions } from '@nestjs/common/interfaces/nest-application-options.interface';
|
4 | import { AbstractHttpAdapter } from '@nestjs/core/adapters/http-adapter';
|
5 | import { ServeStaticOptions } from '../interfaces/serve-static-options.interface';
|
6 | export declare class ExpressAdapter extends AbstractHttpAdapter {
|
7 | constructor(instance?: any);
|
8 | reply(response: any, body: any, statusCode?: number): any;
|
9 | status(response: any, statusCode: number): any;
|
10 | render(response: any, view: string, options: any): any;
|
11 | redirect(response: any, statusCode: number, url: string): any;
|
12 | setErrorHandler(handler: Function, prefix?: string): any;
|
13 | setNotFoundHandler(handler: Function, prefix?: string): any;
|
14 | setHeader(response: any, name: string, value: string): any;
|
15 | listen(port: string | number, callback?: () => void): any;
|
16 | listen(port: string | number, hostname: string, callback?: () => void): any;
|
17 | close(): Promise<unknown>;
|
18 | set(...args: any[]): any;
|
19 | enable(...args: any[]): any;
|
20 | disable(...args: any[]): any;
|
21 | engine(...args: any[]): any;
|
22 | useStaticAssets(path: string, options: ServeStaticOptions): any;
|
23 | setBaseViewsDir(path: string | string[]): any;
|
24 | setViewEngine(engine: string): any;
|
25 | getRequestHostname(request: any): string;
|
26 | getRequestMethod(request: any): string;
|
27 | getRequestUrl(request: any): string;
|
28 | enableCors(options: CorsOptions | CorsOptionsDelegate<any>): any;
|
29 | createMiddlewareFactory(requestMethod: RequestMethod): (path: string, callback: Function) => any;
|
30 | initHttpServer(options: NestApplicationOptions): void;
|
31 | registerParserMiddleware(): void;
|
32 | setLocal(key: string, value: any): this;
|
33 | getType(): string;
|
34 | private isMiddlewareApplied;
|
35 | }
|