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

Function sendRequest

out/cli.cjs:75521–75530  ·  view source on GitHub ↗
(request3, next)

Source from the content-addressed store, hash-verified

75519 var _a5;
75520 const logger3 = (_a5 = options.logger) !== null && _a5 !== void 0 ? _a5 : logger.info;
75521 const sanitizer = new Sanitizer({
75522 additionalAllowedHeaderNames: options.additionalAllowedHeaderNames,
75523 additionalAllowedQueryParameters: options.additionalAllowedQueryParameters
75524 });
75525 return {
75526 name: logPolicyName,
75527 async sendRequest(request3, next) {
75528 if (!logger3.enabled) {
75529 return next(request3);
75530 }
75531 logger3(`Request: ${sanitizer.sanitize(request3)}`);
75532 const response = await next(request3);
75533 logger3(`Response status code: ${response.status}`);

Callers 3

buildOperationFunction · 0.85
asBrowserStreamFunction · 0.85
asNodeStreamFunction · 0.85

Calls 15

nextFunction · 0.85
handleRedirectFunction · 0.85
assertValidBoundaryFunction · 0.85
generateBoundaryFunction · 0.85
buildRequestBodyFunction · 0.85
delay2Function · 0.85
wwwFormUrlEncodeFunction · 0.85
prepareFormDataFunction · 0.85
isBypassedFunction · 0.85
setProxyAgentOnRequestFunction · 0.85
getUrlFromProxySettingsFunction · 0.85
tryCreateSpanFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…