full site update

This commit is contained in:
2025-07-24 18:46:24 +02:00
parent bfe2b90d8d
commit 37a6e0ab31
6912 changed files with 540482 additions and 361712 deletions

View File

@@ -1,14 +1,12 @@
import type { IncomingHttpHeaders } from 'node:http';
import type { Logger } from './logger/core.js';
type HeaderType = Headers | Record<string, any> | IncomingHttpHeaders;
type RequestBody = ArrayBuffer | Blob | ReadableStream | URLSearchParams | FormData;
export interface CreateRequestOptions {
base: string;
interface CreateRequestOptions {
url: URL | string;
clientAddress?: string | undefined;
headers: HeaderType;
method?: string;
body?: RequestBody | undefined;
body?: RequestInit['body'];
logger: Logger;
locals?: object | undefined;
/**
@@ -18,7 +16,9 @@ export interface CreateRequestOptions {
*
* @default false
*/
staticLike?: boolean;
isPrerendered?: boolean;
routePattern: string;
init?: RequestInit;
}
/**
* Used by astro internals to create a web standard request object.
@@ -27,5 +27,5 @@ export interface CreateRequestOptions {
*
* This is used by the static build to create fake requests for prerendering, and by the dev server to convert node requests into the standard request object.
*/
export declare function createRequest({ base, url, headers, clientAddress, method, body, logger, locals, staticLike, }: CreateRequestOptions): Request;
export declare function createRequest({ url, headers, method, body, logger, isPrerendered, routePattern, init, }: CreateRequestOptions): Request;
export {};