plone / guillotina

Python AsyncIO data API to manage billions of resources
https://guillotina.readthedocs.io/en/latest/
Other
188 stars 51 forks source link

[5.x] Add `Range` header support #803

Closed vangheem closed 4 years ago

vangheem commented 4 years ago

https://developer.mozilla.org/en-US/docs/Web/HTTP/Range_requests

Range requests allow us to do partial and resumable downloads.

This will also allow media players to seek inside of a file.

codecov-io commented 4 years ago

Codecov Report

Merging #803 into 5.x will increase coverage by 0.2%. The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##             5.x    #803     +/-   ##
=======================================
+ Coverage   94.2%   94.4%   +0.2%     
=======================================
  Files        305     306      +1     
  Lines      27133   27385    +252     
=======================================
+ Hits       25540   25827    +287     
+ Misses      1593    1558     -35
Impacted Files Coverage Δ
guillotina/tests/dbusers/test_api.py 100% <ø> (ø) :arrow_up:
guillotina/files/adapter.py 96.7% <100%> (+2.1%) :arrow_up:
guillotina/traversal.py 86.9% <100%> (ø) :arrow_up:
guillotina/tests/test_attachment.py 100% <100%> (ø) :arrow_up:
guillotina/test_package.py 96.6% <100%> (+2.1%) :arrow_up:
guillotina/files/manager.py 100% <100%> (+13.8%) :arrow_up:
guillotina/blob.py 97% <100%> (+5.9%) :arrow_up:
guillotina/tests/fixtures.py 93.2% <100%> (+0.1%) :arrow_up:
guillotina/files/exceptions.py 100% <100%> (ø)
guillotina/interfaces/files.py 100% <100%> (ø) :arrow_up:
... and 4 more