Home / Function/ GET() — astro Function Reference

GET() — astro Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  d1849a2b_37e9_a8ef_7249_0eb2a877da12["GET()"]
  03c24e25_1674_6e8b_0dff_b1ced798dd9a["astro-response-cookie-single.ts"]
  d1849a2b_37e9_a8ef_7249_0eb2a877da12 -->|defined in| 03c24e25_1674_6e8b_0dff_b1ced798dd9a
  style d1849a2b_37e9_a8ef_7249_0eb2a877da12 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

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');
  cookies.set('from1', 'astro1');
  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-single.ts.
Where is GET() defined?
GET() is defined in packages/integrations/node/test/fixtures/headers/src/pages/endpoints/astro-response-cookie-single.ts at line 3.

Analyze Your Own Codebase

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

Try Supermodel Free