From c4e798c757213a54e64cf86d87d51f6a5cbe4da5 Mon Sep 17 00:00:00 2001 From: Alex Hultman Date: Wed, 11 Mar 2026 14:39:40 +0000 Subject: [PATCH] [GitHub Actions] Updated ubuntu-24.04-arm binaries --- index.d.ts | 16 ++++++++-------- source_commit | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/index.d.ts b/index.d.ts index b6adb627..4c60ad92 100644 --- a/index.d.ts +++ b/index.d.ts @@ -140,13 +140,6 @@ export interface HttpResponse { * the user manual under "corking". */ writeStatus(status: RecognizedString) : HttpResponse; - - /** Pause http body streaming (throttle) */ - pause() : void; - - /** Resume http body streaming (unthrottle) */ - resume() : void; - /** Writes key and value to HTTP response. * See writeStatus and corking. */ @@ -178,8 +171,15 @@ export interface HttpResponse { * When this event emits, the response has been aborted and may not be used. */ onAborted(handler: () => void) : HttpResponse; - /** Handler for reading data from POST and such requests. You MUST copy the data of chunk if isLast is not true. We Neuter ArrayBuffers on return, making it zero length.*/ + /** Handler for reading HTTP request body data. + * Must be attached before performing any asynchronous operation, otherwise data may be lost. + * You MUST copy the data of chunk if isLast is not true. We Neuter ArrayBuffers on return, making them zero length. */ onData(handler: (chunk: ArrayBuffer, isLast: boolean) => void) : HttpResponse; + /** Pause HTTP request body streaming (throttle). + * Some buffered data may still be sent to onData. */ + pause() : void; + /** Resume HTTP request body streaming (unthrottle). */ + resume() : void; /** Accumulates all data chunks and calls handler with the complete body as an ArrayBuffer once all data has arrived. * If the total body size exceeds maxSize bytes, handler is called with null instead. */ diff --git a/source_commit b/source_commit index 0208ab12..46830f03 100644 --- a/source_commit +++ b/source_commit @@ -1 +1 @@ -b0a1028301d6a5df06f1db3f649503d4f470483b +7d83524a90c9377c7b034372707b038490174753