Home / Type/ CreateRequestOptions Type — astro Architecture

CreateRequestOptions Type — astro Architecture

Architecture documentation for the CreateRequestOptions type/interface in request.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  acffd68b_5b77_af69_de02_e2ff87b488c4["CreateRequestOptions"]
  efdcd621_1ac1_b986_346b_ad401214e3a2["request.ts"]
  acffd68b_5b77_af69_de02_e2ff87b488c4 -->|defined in| efdcd621_1ac1_b986_346b_ad401214e3a2
  style acffd68b_5b77_af69_de02_e2ff87b488c4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/core/request.ts lines 6–26

interface CreateRequestOptions {
	url: URL | string;
	clientAddress?: string | undefined;
	headers: HeaderType;
	method?: string;
	body?: RequestInit['body'];
	logger: Logger;
	locals?: object | undefined;
	/**
	 * Whether the request is being created for a static build or for a prerendered page within a hybrid/SSR build, or for emulating one of those in dev mode.
	 *
	 * When `true`, the request will not include search parameters or body, and warn when headers are accessed.
	 *
	 * @default false
	 */
	isPrerendered?: boolean;

	routePattern: string;

	init?: RequestInit;
}

Frequently Asked Questions

What is the CreateRequestOptions type?
CreateRequestOptions is a type/interface in the astro codebase, defined in packages/astro/src/core/request.ts.
Where is CreateRequestOptions defined?
CreateRequestOptions is defined in packages/astro/src/core/request.ts at line 6.

Analyze Your Own Codebase

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

Try Supermodel Free