MCPcopy
hub / github.com/loopbackio/loopback-next / constructor

Method constructor

packages/rest/src/http-handler.ts:36–42  ·  view source on GitHub ↗
(
    protected readonly _rootContext: Context,
    protected readonly _serverConfig: RestServerResolvedConfig,
    protected readonly _routes = new RoutingTable(),
  )

Source from the content-addressed store, hash-verified

34 public handleRequest: (request: Request, response: Response) => Promise<void>;
35
36 constructor(
37 protected readonly _rootContext: Context,
38 protected readonly _serverConfig: RestServerResolvedConfig,
39 protected readonly _routes = new RoutingTable(),
40 ) {
41 this.handleRequest = (req, res) => this._handleRequest(req, res);
42 }
43
44 registerController<T extends object>(
45 spec: ControllerSpec,

Callers

nothing calls this directly

Calls 1

_handleRequestMethod · 0.95

Tested by

no test coverage detected