bytes
function bytes<T>(stream): T;Defined in: elysia/dist/utils.d.ts:155
Certify a byte stream for direct Response body pass-through.
The returned Response owns this exact stream. Cancel it through the response body reader; preserving identity means Elysia does not install a second request-signal reader after the body is locked.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
T extends ReadableStream<Uint8Array<ArrayBufferLike>> |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
stream | T |
Returns
Section titled “Returns”T