Skip to content

PR: Sub Issue 4a - Download abstractions, HttpDownloadExecutor, retry policy#317

Merged
JusterZhu merged 1 commit into
masterfrom
feature/download-refactor
May 24, 2026
Merged

PR: Sub Issue 4a - Download abstractions, HttpDownloadExecutor, retry policy#317
JusterZhu merged 1 commit into
masterfrom
feature/download-refactor

Conversation

@JusterZhu
Copy link
Copy Markdown
Collaborator

Summary

Closes #316

Changes

  • IDownloadExecutor: Pluggable download execution interface
  • IDownloadPolicy: Retry/timeout strategy interface
  • DownloadProgress / DownloadResult / DownloadStatus: Progress and result models
  • HttpDownloadExecutor: HTTP download with Range/resume support
    • Automatic resume from partial files
    • Progress reporting via IProgress
    • Uses shared HttpClient for connection pooling
  • DefaultRetryPolicy: Exponential backoff (1s→2s→4s, max 3 retries)
    • Retry: timeout, network I/O, 5xx
    • No retry: 4xx, SSL, auth failures

Files

File Description
\Download/Abstractions/IDownloadExecutor.cs\ New
\Download/Models/DownloadProgress.cs\ New
\Download/Executors/HttpDownloadExecutor.cs\ New
\Download/Policy/DefaultRetryPolicy.cs\ New

Build

✅ 0 errors

…y policy

- IDownloadExecutor interface for pluggable download execution
- IDownloadPolicy interface for retry/timeout strategies
- DownloadProgress / DownloadResult / DownloadStatus / DownloadPriority models
- HttpDownloadExecutor with HTTP Range resume support + progress reporting
- DefaultRetryPolicy with exponential backoff (1s/2s/4s, max 3 retries)
- Retryable: timeout, network I/O, 5xx. Not retryable: 4xx, SSL, auth.

Closes #316
Copilot AI review requested due to automatic review settings May 23, 2026 23:59
@JusterZhu JusterZhu merged commit 1061351 into master May 24, 2026
1 check failed
@JusterZhu JusterZhu deleted the feature/download-refactor branch May 24, 2026 00:00
@JusterZhu JusterZhu review requested due to automatic review settings May 24, 2026 00:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sub Issue 4a: Download abstractions + HttpDownloadExecutor + retry policy

1 participant