MCPcopy Index your code
hub / github.com/di-sukharev/opencommit / setClientRequestIdPolicy

Function setClientRequestIdPolicy

out/cli.cjs:76343–76353  ·  view source on GitHub ↗
(requestIdHeaderName = "x-ms-client-request-id")

Source from the content-addressed store, hash-verified

76341 }
76342 return next(request3);
76343 }
76344 };
76345}
76346
76347// node_modules/@azure/core-rest-pipeline/dist/esm/policies/setClientRequestIdPolicy.js
76348var setClientRequestIdPolicyName = "setClientRequestIdPolicy";
76349function setClientRequestIdPolicy(requestIdHeaderName = "x-ms-client-request-id") {
76350 return {
76351 name: setClientRequestIdPolicyName,
76352 async sendRequest(request3, next) {
76353 if (!request3.headers.has(requestIdHeaderName)) {
76354 request3.headers.set(requestIdHeaderName, request3.requestId);
76355 }
76356 return next(request3);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…