full site update
This commit is contained in:
12
node_modules/astro/dist/core/request.d.ts
generated
vendored
12
node_modules/astro/dist/core/request.d.ts
generated
vendored
@@ -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 {};
|
||||
|
Reference in New Issue
Block a user