MCPcopy
hub / github.com/nestjs/nest / createHttpAdapter

Method createHttpAdapter

packages/core/nest-factory.ts:324–331  ·  view source on GitHub ↗
(httpServer?: T)

Source from the content-addressed store, hash-verified

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,

Callers 1

createMethod · 0.95

Calls 1

loadAdapterFunction · 0.90

Tested by

no test coverage detected