GET() — astro Function Reference
Architecture documentation for the GET() function in response-cookies-multi.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD c61a135c_2a42_55b2_a815_6309553a9679["GET()"] 3029bf10_550b_5ca9_afa5_4f34fe424263["response-cookies-multi.ts"] c61a135c_2a42_55b2_a815_6309553a9679 -->|defined in| 3029bf10_550b_5ca9_afa5_4f34fe424263 style c61a135c_2a42_55b2_a815_6309553a9679 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/integrations/node/test/fixtures/headers/src/pages/endpoints/response-cookies-multi.ts lines 1–7
export async function GET({ request }: { request: Request }) {
const headers = new Headers();
headers.append('content-type', 'text/plain;charset=utf-8');
headers.append('Set-Cookie', 'hello1=world1');
headers.append('SET-COOKIE', 'hello2=world2');
return new Response('hello world', { headers });
}
Domain
Subdomains
Defined In
Source
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/response-cookies-multi.ts.
Where is GET() defined?
GET() is defined in packages/integrations/node/test/fixtures/headers/src/pages/endpoints/response-cookies-multi.ts at line 1.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free