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

Method setHttpAdapter

packages/core/injector/container.ts:74–82  ·  view source on GitHub ↗
(httpAdapter: any)

Source from the content-addressed store, hash-verified

72 }
73
74 public setHttpAdapter(httpAdapter: any) {
75 this.internalProvidersStorage.httpAdapter = httpAdapter;
76
77 if (!this.internalProvidersStorage.httpAdapterHost) {
78 return;
79 }
80 const host = this.internalProvidersStorage.httpAdapterHost;
81 host.httpAdapter = httpAdapter;
82 }
83
84 public getHttpAdapterRef() {
85 return this.internalProvidersStorage.httpAdapter;

Callers 5

createInstanceFunction · 0.95
initializeMethod · 0.80
container.spec.tsFile · 0.80
createNestApplicationMethod · 0.80

Calls

no outgoing calls

Tested by 1

createInstanceFunction · 0.76