(httpServer?: T)
| 322 | } |
| 323 | |
| 324 | private createHttpAdapter<T = any>(httpServer?: T): AbstractHttpAdapter { |
| 325 | const { ExpressAdapter } = loadAdapter( |
| 326 | '@nestjs/platform-express', |
| 327 | 'HTTP', |
| 328 | () => require('@nestjs/platform-express'), |
| 329 | ); |
| 330 | return new ExpressAdapter(httpServer); |
| 331 | } |
| 332 | |
| 333 | private isHttpServer( |
| 334 | serverOrOptions: AbstractHttpAdapter | NestApplicationOptions, |