MCPcopy
hub / github.com/coder/mux / cancel

Function cancel

src/node/services/devToolsMiddleware.ts:703–718  ·  view source on GitHub ↗
(reason)

Source from the content-addressed store, hash-verified

701 },
702
703 async cancel(reason): Promise<void> {
704 try {
705 await reader.cancel(reason);
706 } finally {
707 await finalizeStep({
708 output: buildOutput(),
709 usage,
710 error: "Request aborted",
711 rawRequest,
712 requestHeaders: capturedRequestHeaders,
713 responseHeaders,
714 rawResponse: fullStreamChunks,
715 rawChunks,
716 });
717 }
718 },
719 });
720
721 return {

Callers 1

handleKeyDownFunction · 0.85

Calls 3

finalizeStepFunction · 0.85
buildOutputFunction · 0.70
cancelMethod · 0.45

Tested by

no test coverage detected