Home / Function/ GET() — astro Function Reference

GET() — astro Function Reference

Architecture documentation for the GET() function in kitchen-sink.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  759201a1_f49a_4a1d_b164_2fd2fe2c3300["GET()"]
  7714c141_6925_cbfb_a04e_c60adbebb7da["kitchen-sink.ts"]
  759201a1_f49a_4a1d_b164_2fd2fe2c3300 -->|defined in| 7714c141_6925_cbfb_a04e_c60adbebb7da
  style 759201a1_f49a_4a1d_b164_2fd2fe2c3300 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/integrations/node/test/fixtures/headers/src/pages/endpoints/kitchen-sink.ts lines 1–11

export async function GET({ request }: { request: Request }) {
  const headers = new Headers();
  headers.append('content-type', 'text/plain;charset=utf-8');
  headers.append('x-SINGLE', 'single');
  headers.append('X-triple', 'one');
  headers.append('x-Triple', 'two');
  headers.append('x-TRIPLE', 'three');
  headers.append('SET-cookie', 'hello1=world1');
  headers.append('Set-Cookie', 'hello2=world2');
	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/kitchen-sink.ts.
Where is GET() defined?
GET() is defined in packages/integrations/node/test/fixtures/headers/src/pages/endpoints/kitchen-sink.ts at line 1.

Analyze Your Own Codebase

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

Try Supermodel Free