Home / Function/ GET() — astro Function Reference

GET() — astro Function Reference

Architecture documentation for the GET() function in astro-cookies-multi.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  96a850d5_d936_3c54_cb0d_8c557fcb08df["GET()"]
  e1747c1c_cfa5_6ee4_29c7_4573ae993552["astro-cookies-multi.ts"]
  96a850d5_d936_3c54_cb0d_8c557fcb08df -->|defined in| e1747c1c_cfa5_6ee4_29c7_4573ae993552
  style 96a850d5_d936_3c54_cb0d_8c557fcb08df fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/node/test/fixtures/headers/src/pages/endpoints/astro-cookies-multi.ts lines 3–9

export async function GET({ request, cookies }: APIContext) {
  const headers = new Headers();
  headers.append('content-type', 'text/plain;charset=utf-8');
  cookies.set('from1', 'astro1');
  cookies.set('from2', 'astro2');
  return new Response('hello world', { headers });
}

Domain

Subdomains

Frequently Asked Questions

What does GET() do?
GET() is a function in the astro codebase, defined in packages/integrations/node/test/fixtures/headers/src/pages/endpoints/astro-cookies-multi.ts.
Where is GET() defined?
GET() is defined in packages/integrations/node/test/fixtures/headers/src/pages/endpoints/astro-cookies-multi.ts at line 3.

Analyze Your Own Codebase

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

Try Supermodel Free