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

Method _handleRequest

packages/rest/src/http-handler.ts:101–116  ·  view source on GitHub ↗
(
    request: Request,
    response: Response,
  )

Source from the content-addressed store, hash-verified

99 }
100
101 protected async _handleRequest(
102 request: Request,
103 response: Response,
104 ): Promise<void> {
105 const requestContext = new RequestContext(
106 request,
107 response,
108 this._rootContext,
109 this._serverConfig,
110 );
111
112 const sequence = await requestContext.get<SequenceHandler>(
113 RestBindings.SEQUENCE,
114 );
115 await sequence.handle(requestContext);
116 }
117}

Callers 1

constructorMethod · 0.95

Calls 1

handleMethod · 0.65

Tested by

no test coverage detected