mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-18 07:50:13 +00:00
downloadToTemp now refuses any Content-Encoding other than identity, caps each download at 20 GiB (HYPERFRAMES_MAX_DOWNLOAD_BYTES) on the declared Content-Length and while streaming, and aborts a transfer whose bytes over the last 60 s average below 32 KiB/s (HYPERFRAMES_MIN_DOWNLOAD_BYTES_PER_SEC, 0 disables). Compressed and over-limit responses are not retried. A throughput abort is a retryable timeout like the stall timer, which is unchanged. A sized body that trickles one chunk every 100 s is now cut by the floor instead of finishing. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>