feat: scaffold Astro + Tailwind project
This commit is contained in:
17
node_modules/astro/dist/core/request-body.d.ts
generated
vendored
Normal file
17
node_modules/astro/dist/core/request-body.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
/**
|
||||
* Shared utility for reading request bodies with a size limit.
|
||||
* Used by both Actions and Server Islands to enforce `security.actionBodySizeLimit`
|
||||
* and `security.serverIslandBodySizeLimit` respectively.
|
||||
*/
|
||||
/**
|
||||
* Read the request body as a `Uint8Array`, enforcing a maximum size limit.
|
||||
* Checks the `Content-Length` header for early rejection, then streams the body
|
||||
* and tracks bytes received.
|
||||
*
|
||||
* @throws {BodySizeLimitError} if the body exceeds the configured limit
|
||||
*/
|
||||
export declare function readBodyWithLimit(request: Request, limit: number): Promise<Uint8Array>;
|
||||
export declare class BodySizeLimitError extends Error {
|
||||
limit: number;
|
||||
constructor(limit: number);
|
||||
}
|
||||
Reference in New Issue
Block a user