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 e8bd5d1c..4467ee60 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 45f79bfe..a9c5b758 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 61b35858..9a99b44f 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 d75903c7..0734911d 100755 Binary files a/uws_linux_arm64_141.node and b/uws_linux_arm64_141.node differ