-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fileresponse content-range header #2847
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
5b6c379
Provide Content-Range header for Range requests
spcharc 4742616
Upload
spcharc acbf7e6
Update Contributors.txt
spcharc e962b05
Coverage improvements?
spcharc f76cf86
Remove Assert
spcharc 41bdf8c
Remove an empty file add by mistake
spcharc e751ebe
fix an error in test
spcharc 577c81a
Added an probably unnecessay header: Content-Range when HTTP 416 is r…
spcharc 278b388
Document Server->Reference changed for Request.if-range and Request.i…
spcharc c6ba2e7
Provide Content-Range header for Range requests
spcharc fe0c171
Update Contributors.txt
spcharc 4d10219
Coverage improvements?
spcharc c258bdb
Remove Assert
spcharc 9e2960e
Remove an empty file add by mistake
spcharc f3eeaca
fix an error in test
spcharc b18bef4
Added an probably unnecessay header: Content-Range when HTTP 416 is r…
spcharc 127309a
Document Server->Reference changed for Request.if-range and Request.i…
spcharc 9a9dea3
Merge branch 'fileresp-header' of https://github.com/spcharc/aiohttp …
spcharc 4d3e806
Merge branch 'master' into fileresp-header
spcharc f04aac7
Merge branch 'master' into fileresp-header
spcharc e2c71b1
Added New in Version 3.1 tag. Solved the question in PR. Added a _htt…
spcharc be63235
Merge branch 'fileresp-header' of https://github.com/spcharc/aiohttp …
spcharc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Provide Content-Range header for Range requests |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -329,6 +329,28 @@ and :ref:`aiohttp-web-signals` handlers. | |
*If-Modified-Since* header is absent or is not a valid | ||
HTTP date. | ||
|
||
.. attribute:: if_unmodified_since | ||
|
||
Read-only property that returns the date specified in the | ||
*If-Unmodified-Since* header. | ||
|
||
Returns :class:`datetime.datetime` or ``None`` if | ||
*If-Unmodified-Since* header is absent or is not a valid | ||
HTTP date. | ||
|
||
.. versionadded:: 3.1 | ||
|
||
.. attribute:: if_range | ||
|
||
Read-only property that returns the date specified in the | ||
*If-Range* header. | ||
|
||
Returns :class:`datetime.datetime` or ``None`` if | ||
*If-Range* header is absent or is not a valid | ||
HTTP date. | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
.. versionadded:: 3.1 | ||
|
||
.. method:: clone(*, method=..., rel_url=..., headers=...) | ||
|
||
Clone itself with replacement some attributes. | ||
|
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here should be
..versionadded:: 3.1
tag.