MCPcopy Create free account
hub / github.com/EvoMap/evolver / hasAuthorizationHeader

Function hasAuthorizationHeader

src/gep/cliContracts.js:1014–1017  ·  view source on GitHub ↗
(headers)

Source from the content-addressed store, hash-verified

1012}
1013
1014function hasAuthorizationHeader(headers) {
1015 const value = headers && (headers.Authorization || headers.authorization);
1016 return typeof value === 'string' && /^Bearer\s+\S+$/i.test(value);
1017}
1018
1019function stableHubReason(body, allowed) {
1020 return stableReason(hubReason(body), allowed);

Callers 3

postEnvelopeFunction · 0.85
hasHubAuthorizationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected