Home / Function/ raw() — astro Function Reference

raw() — astro Function Reference

Architecture documentation for the raw() function in cookies.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  7c061eb4_0dde_43f8_b6d4_36db2f10255b["raw()"]
  28935751_f2b1_4797_d41a_fc616c40e0a8["AstroCookies"]
  7c061eb4_0dde_43f8_b6d4_36db2f10255b -->|defined in| 28935751_f2b1_4797_d41a_fc616c40e0a8
  f12348cf_2aaf_fe08_4139_53f1735dea1d["get()"]
  7c061eb4_0dde_43f8_b6d4_36db2f10255b -->|calls| f12348cf_2aaf_fe08_4139_53f1735dea1d
  style 7c061eb4_0dde_43f8_b6d4_36db2f10255b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/cookies/cookies.ts lines 268–276

	#parse() {
		const raw = this.#request.headers.get('cookie');
		if (!raw) {
			return;
		}
		// Pass identity function for decoding so it doesn't use the default.
		// We'll do the actual decoding when we read the value.
		this.#requestValues = parse(raw, { decode: identity });
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does raw() do?
raw() is a function in the astro codebase, defined in packages/astro/src/core/cookies/cookies.ts.
Where is raw() defined?
raw() is defined in packages/astro/src/core/cookies/cookies.ts at line 268.
What does raw() call?
raw() calls 1 function(s): get.

Analyze Your Own Codebase

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

Try Supermodel Free