Skip to content

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 Parameter
T extends ReadableStream<Uint8Array<ArrayBufferLike>>
ParameterType
streamT

T

Last updated:

Type to search the documentation.

    Up arrowDown arrow to navigateEnter to selectEscape to close