PlatformApplication
@tsed/platform-http
Usage
typescript
import { PlatformApplication } from "@tsed/platform-http";
See /packages/platform/platform-http/src/types/common/services/PlatformApplication.ts.
Overview
ts
class PlatformApplication<App = TsED.Application> extends PlatformRouter {
adapter: PlatformAdapter<App>;
rawApp: App;
rawCallback: () => any;
constructor();
getApp(): App;
multer(options: PlatformMulterSettings): import("multer").Multer;
callback(): (req: IncomingMessage, res: ServerResponse) => any;
callback(req: IncomingMessage, res: ServerResponse): any;
}
Description
PlatformApplication
is used to provide all routes collected by annotation @Controller
.
adapter
ts
adapter: PlatformAdapter<App>;
rawApp
ts
rawApp: App;
rawCallback:
ts
rawCallback: () => any;
getApp
ts
getApp(): App;
multer
ts
multer(options: PlatformMulterSettings): import("multer").Multer;
callback
ts
callback(): (req: IncomingMessage, res: ServerResponse) => any;
callback
ts
callback(req: IncomingMessage, res: ServerResponse): any;