MCPcopy
hub / github.com/AndrewWalsh/openapi-devtools / filterIgnoreHeaders

Function filterIgnoreHeaders

src/utils/headers.ts:212–216  ·  view source on GitHub ↗
(headers: Entry["request"]["headers"])

Source from the content-addressed store, hash-verified

210const headersToIgnore = new Set<string>(ignoreTheseHeaders);
211
212export const filterIgnoreHeaders = (headers: Entry["request"]["headers"]) => {
213 return headers.filter(({ name }) => {
214 return !headersToIgnore.has(name.toLowerCase());
215 });
216};
217
218export const defaultAuthHeaders = [
219 "access-key",

Callers 1

createLeafFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected