Home / File/ astro-cookies-single.ts — astro Source File

astro-cookies-single.ts — astro Source File

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

Domain

Subdomains

Functions

Dependencies

  • astro

Frequently Asked Questions

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