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

Method endResponse

nodejs/src/copilotRequestHandler.ts:600–610  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

598 }
599
600 async endResponse(): Promise<void> {
601 if (this.#finished) {
602 return;
603 }
604 this.#finished = true;
605 await this.#rpc().llmInference.httpResponseChunk({
606 requestId: this.requestId,
607 data: "",
608 end: true,
609 });
610 }
611
612 async errorResponse(error: { message: string; code?: string }): Promise<void> {
613 if (this.#finished) {

Callers 2

streamResponseFunction · 0.45
endMethod · 0.45

Calls 2

#rpcMethod · 0.95
httpResponseChunkMethod · 0.80

Tested by

no test coverage detected