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

Function getHeader

lib/edge-runtime/utils.ts:126–136  ·  view source on GitHub ↗
(
  headers: { [key: string]: string } | Headers | null,
  name: string,
)

Source from the content-addressed store, hash-verified

124}
125
126export function getHeader(
127 headers: { [key: string]: string } | Headers | null,
128 name: string,
129): string | null {
130 if (headers === null) return null;
131 if (typeof headers.get === "function") {
132 return headers.get(name) || headers.get(name.toLowerCase());
133 }
134 // @ts-ignore
135 return headers[name] || headers[name.toLowerCase()] || null;
136}
137
138export async function getFreeTierUsage(
139 supabase: SupabaseClient<Database>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected