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

Function abortHandler

src/node/services/devToolsMiddleware.ts:393–405  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

391 };
392
393 const abortHandler = (): void => {
394 const capturedRequestHeaders = consumeCapturedRequestHeaders(stepId);
395 void finalizeStep({
396 output: null,
397 usage: null,
398 error: "Request aborted",
399 rawRequest: null,
400 requestHeaders: capturedRequestHeaders,
401 responseHeaders: null,
402 rawResponse: null,
403 rawChunks: null,
404 });
405 };
406
407 if (params.abortSignal != null) {
408 if (params.abortSignal.aborted) {

Callers 1

createDevToolsMiddlewareFunction · 0.70

Calls 3

finalizeStepFunction · 0.85
buildOutputFunction · 0.70

Tested by

no test coverage detected