MCPcopy Create free account
hub / github.com/alibaba/open-code-review / getHeader

Function getHeader

scripts/github-actions/post-review-comments.js:1072–1075  ·  view source on GitHub ↗
(headers, name)

Source from the content-addressed store, hash-verified

1070// lowercase, but this defensive check also handles original casing so that
1071// quota logging and retry delay computation never silently miss a header.
1072function getHeader(headers, name) {
1073 const v = headers[name] != null ? headers[name] : headers[name.toLowerCase()];
1074 return v != null ? String(v).trim() : undefined;
1075}
1076
1077// Decide whether an error is worth retrying and, if so, how long to wait.
1078// Implements GitHub's documented rate-limit retry strategy using the

Callers 1

headerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected