MCPcopy Index your code
hub / github.com/github/copilot-sdk / #handleHttp

Method #handleHttp

nodejs/src/copilotRequestHandler.ts:266–270  ·  view source on GitHub ↗
(exchange: CopilotRequestExchange, ctx: CopilotRequestContext)

Source from the content-addressed store, hash-verified

264 }
265
266 async #handleHttp(exchange: CopilotRequestExchange, ctx: CopilotRequestContext): Promise<void> {
267 const request = await buildFetchRequest(exchange);
268 const response = await this.sendRequest(request, ctx);
269 await streamResponse(response, exchange);
270 }
271
272 async #handleWebSocket(exchange: CopilotRequestExchange, ctx: InternalContext): Promise<void> {
273 const handler = await this.openWebSocket(ctx);

Callers 1

[kHandle]Method · 0.95

Calls 3

sendRequestMethod · 0.95
buildFetchRequestFunction · 0.85
streamResponseFunction · 0.85

Tested by

no test coverage detected