HTTP 傳輸 ========= 可續傳 HTTP 下載 ---------------- :func:`~automation_file.download_file` 接受 ``resume=True``。位元組會寫入 ``.part``;若該臨時檔案已存在,下次呼叫會送出 ``Range: bytes=-``,讓傳輸從現有位元組數繼續。搭配 ``expected_sha256=`` 可在最後一塊寫入後立刻驗證: .. code-block:: python from automation_file import download_file download_file( "https://example.com/big.bin", "big.bin", resume=True, expected_sha256="3b0c44298fc1...", ) 每個 URL 都會通過 :func:`~automation_file.remote.url_validator.validate_http_url`, 攔截 ``file://`` / ``ftp://`` / ``data:`` 等 scheme,以及 私有 / loopback / link-local / 保留 / 多播 / 未指定地址的 IP。 預設 20 MB 回應上限、15 秒連線逾時。TLS 驗證從不關閉。 傳輸進度與取消 -------------- 把 ``progress_name="