Home / File/ astro-response-cookie-multi.ts — astro Source File

astro-response-cookie-multi.ts — astro Source File

Architecture documentation for astro-response-cookie-multi.ts, a typescript file in the astro codebase. 1 imports, 0 dependents.

File typescript CoreAstro RenderingEngine 1 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  5cac98f9_37a7_1f41_fb46_e2c9654be4ff["astro-response-cookie-multi.ts"]
  f16d8c76_2866_6150_bd14_0347b59abfe9["astro"]
  5cac98f9_37a7_1f41_fb46_e2c9654be4ff --> f16d8c76_2866_6150_bd14_0347b59abfe9
  style 5cac98f9_37a7_1f41_fb46_e2c9654be4ff fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { APIContext } from 'astro';

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

Functions

Dependencies

  • astro

Frequently Asked Questions

What does astro-response-cookie-multi.ts do?
astro-response-cookie-multi.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, RenderingEngine subdomain.
What functions are defined in astro-response-cookie-multi.ts?
astro-response-cookie-multi.ts defines 1 function(s): GET.
What does astro-response-cookie-multi.ts depend on?
astro-response-cookie-multi.ts imports 1 module(s): astro.
Where is astro-response-cookie-multi.ts in the architecture?
astro-response-cookie-multi.ts is located at packages/integrations/node/test/fixtures/headers/src/pages/endpoints/astro-response-cookie-multi.ts (domain: CoreAstro, subdomain: RenderingEngine, directory: packages/integrations/node/test/fixtures/headers/src/pages/endpoints).

Analyze Your Own Codebase

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

Try Supermodel Free