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

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

Architecture documentation for astro-response-cookie-single.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
  03c24e25_1674_6e8b_0dff_b1ced798dd9a["astro-response-cookie-single.ts"]
  f16d8c76_2866_6150_bd14_0347b59abfe9["astro"]
  03c24e25_1674_6e8b_0dff_b1ced798dd9a --> f16d8c76_2866_6150_bd14_0347b59abfe9
  style 03c24e25_1674_6e8b_0dff_b1ced798dd9a 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');
  cookies.set('from1', 'astro1');
  return new Response('hello world', { headers });
}

Domain

Subdomains

Functions

Dependencies

  • astro

Frequently Asked Questions

What does astro-response-cookie-single.ts do?
astro-response-cookie-single.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-single.ts?
astro-response-cookie-single.ts defines 1 function(s): GET.
What does astro-response-cookie-single.ts depend on?
astro-response-cookie-single.ts imports 1 module(s): astro.
Where is astro-response-cookie-single.ts in the architecture?
astro-response-cookie-single.ts is located at packages/integrations/node/test/fixtures/headers/src/pages/endpoints/astro-response-cookie-single.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