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

Method host

packages/core/nest-application.ts:476–482  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

474 }
475
476 private host(): string | undefined {
477 const address = this.httpServer.address();
478 if (isString(address)) {
479 return undefined;
480 }
481 return address && address.address;
482 }
483
484 private getProtocol(): 'http' | 'https' {
485 return this.appOptions && this.appOptions.httpsOptions ? 'https' : 'http';

Callers 1

formatAddressMethod · 0.95

Calls 1

isStringFunction · 0.90

Tested by

no test coverage detected