MCPcopy Create free account
hub / github.com/Superflows-AI/superflows / getHeader

Function getHeader

supabase/functions/execute-code-2/utils.ts:140–150  ·  view source on GitHub ↗
(
  headers: { [key: string]: string } | Headers | null,
  name: string,
)

Source from the content-addressed store, hash-verified

138}
139
140export function getHeader(
141 headers: { [key: string]: string } | Headers | null,
142 name: string,
143): string | null {
144 if (headers === null) return null;
145 if (typeof headers.get === "function") {
146 return headers.get(name) || headers.get(name.toLowerCase());
147 }
148 // @ts-ignore
149 return headers[name] || headers[name.toLowerCase()] || null;
150}
151
152export function getParam(
153 parameters: Record<string, any>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected