Update app and tooling
This commit is contained in:
parent
3046531bdd
commit
e620ec7349
4950 changed files with 2975120 additions and 10 deletions
35
node_modules/edge-runtime/dist/server/body-streams.d.ts
generated
vendored
Normal file
35
node_modules/edge-runtime/dist/server/body-streams.d.ts
generated
vendored
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
/// <reference types="node" />
|
||||
/// <reference types="node" />
|
||||
import type { IncomingMessage } from 'http';
|
||||
import type { Writable } from 'stream';
|
||||
type BodyStream = ReadableStream<Uint8Array>;
|
||||
/**
|
||||
* An interface that encapsulates body stream cloning
|
||||
* of an incoming request.
|
||||
*/
|
||||
export declare function getClonableBodyStream<T extends IncomingMessage>(incomingMessage: T, KUint8Array: typeof Uint8Array, KTransformStream: typeof TransformStream): {
|
||||
/**
|
||||
* Replaces the original request body if necessary.
|
||||
* This is done because once we read the body from the original request,
|
||||
* we can't read it again.
|
||||
*/
|
||||
finalize(): void;
|
||||
/**
|
||||
* Clones the body stream
|
||||
* to pass into a middleware
|
||||
*/
|
||||
cloneBodyStream(): BodyStream;
|
||||
};
|
||||
/**
|
||||
* Creates an async iterator from a ReadableStream that ensures that every
|
||||
* emitted chunk is a `Uint8Array`. If there is some invalid chunk it will
|
||||
* throw.
|
||||
*/
|
||||
export declare function consumeUint8ArrayReadableStream(body?: ReadableStream): AsyncGenerator<Uint8Array, void, unknown>;
|
||||
/**
|
||||
* Pipes the chunks of a BodyStream into a Response. This optimizes for
|
||||
* laziness, pauses reading if we experience back-pressure, and handles early
|
||||
* disconnects by the client on the other end of the server response.
|
||||
*/
|
||||
export declare function pipeBodyStreamToResponse(body: BodyStream | null, res: Writable): Promise<void>;
|
||||
export {};
|
||||
Loading…
Add table
Add a link
Reference in a new issue