Home / Function/ getRegistryHeadersFromContext() — ui Function Reference

getRegistryHeadersFromContext() — ui Function Reference

Architecture documentation for the getRegistryHeadersFromContext() function in context.ts from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  f62cf15a_6e0c_b58a_164e_7d04deb90060["getRegistryHeadersFromContext()"]
  9c06945e_ff8c_6208_b456_06ff9c3a854a["context.ts"]
  f62cf15a_6e0c_b58a_164e_7d04deb90060 -->|defined in| 9c06945e_ff8c_6208_b456_06ff9c3a854a
  style f62cf15a_6e0c_b58a_164e_7d04deb90060 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/shadcn/src/registry/context.ts lines 16–20

export function getRegistryHeadersFromContext(
  url: string
): Record<string, string> {
  return context.headers[url] || {}
}

Subdomains

Frequently Asked Questions

What does getRegistryHeadersFromContext() do?
getRegistryHeadersFromContext() is a function in the ui codebase, defined in packages/shadcn/src/registry/context.ts.
Where is getRegistryHeadersFromContext() defined?
getRegistryHeadersFromContext() is defined in packages/shadcn/src/registry/context.ts at line 16.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free