diff --git a/index.d.ts b/index.d.ts index aa960b97..29da76ab 100644 --- a/index.d.ts +++ b/index.d.ts @@ -170,6 +170,9 @@ export interface HttpResponse { /** Returns the global byte write offset for this response. Use with onWritable. */ getWriteOffset() : number; + /** Returns the max remaining body length of the currently read HTTP body. */ + maxRemainingBodyLength() : bigint; + /** Registers a handler for writable events. Continue failed write attempts in here. * You MUST return true for success, false for failure. * Writing nothing is always success, so by default you must return true. diff --git a/source_commit b/source_commit index 0ba7d71c..967d5c20 100644 --- a/source_commit +++ b/source_commit @@ -1 +1 @@ -e1e8339103ddcdf666591afbf4aa8d44482ae171 +64b8e58f477196ba21e8ada281c82dc7591c2b00 diff --git a/uws_linux_arm64_115.node b/uws_linux_arm64_115.node index 25380bc3..b199174e 100644 Binary files a/uws_linux_arm64_115.node and b/uws_linux_arm64_115.node differ diff --git a/uws_linux_arm64_127.node b/uws_linux_arm64_127.node index 1d68d374..0fe4c4b8 100644 Binary files a/uws_linux_arm64_127.node and b/uws_linux_arm64_127.node differ diff --git a/uws_linux_arm64_137.node b/uws_linux_arm64_137.node index 87fe4385..4025a9ad 100644 Binary files a/uws_linux_arm64_137.node and b/uws_linux_arm64_137.node differ diff --git a/uws_linux_arm64_141.node b/uws_linux_arm64_141.node index 39c3cee6..6a4ab59b 100755 Binary files a/uws_linux_arm64_141.node and b/uws_linux_arm64_141.node differ