Add HTTP range support for file downloads - #578
Merged
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #578 +/- ##
==========================================
+ Coverage 65.18% 65.20% +0.01%
==========================================
Files 34 35 +1
Lines 66330 66363 +33
Branches 4716 4729 +13
==========================================
+ Hits 43239 43271 +32
Misses 22930 22930
- Partials 161 162 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
AndreyVMarkelov
force-pushed
the
support_range_download
branch
from
August 4, 2026 22:51
36ceea0 to
a27836c
Compare
AndreyVMarkelov
force-pushed
the
support_range_download
branch
from
August 4, 2026 22:56
a27836c to
6f32a0d
Compare
rhui-dbx
approved these changes
Aug 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add first-class HTTP Range support for file downloads.
This change adds an optional extra_headers parameter to files_download and files_download_to_file, allowing callers to pass request-specific HTTP headers such as Range.
It also adds a public build_range_headers helper for constructing valid HTTP Range headers.
Example
Changes
Backward compatibility
The new arguments are optional and are appended to the existing method signatures.
Existing calls continue to work unchanged:
SDK-managed headers such as Authorization, Content-Type, and Dropbox-API-Arg continue to take precedence over conflicting values supplied through extra_headers.
Fixes #79.