Home / Function/ GET() — astro Function Reference

GET() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  12887189_f4d8_b4e0_23f3_a2792b5d93a7["GET()"]
  5cac98f9_37a7_1f41_fb46_e2c9654be4ff["astro-response-cookie-multi.ts"]
  12887189_f4d8_b4e0_23f3_a2792b5d93a7 -->|defined in| 5cac98f9_37a7_1f41_fb46_e2c9654be4ff
  style 12887189_f4d8_b4e0_23f3_a2792b5d93a7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/node/test/fixtures/headers/src/pages/endpoints/astro-response-cookie-multi.ts lines 3–11

export async function GET({ request, cookies }: APIContext) {
  const headers = new Headers();
  headers.append('content-type', 'text/plain;charset=utf-8');
  headers.append('set-cookie', 'from1=response1');
  headers.append('set-cookie', 'from2=response2');
  cookies.set('from3', 'astro1');
  cookies.set('from4', '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-response-cookie-multi.ts.
Where is GET() defined?
GET() is defined in packages/integrations/node/test/fixtures/headers/src/pages/endpoints/astro-response-cookie-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