Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IMPORTANT cache invalidation change, fix 307 keep method, add 308 red…
…irect - support 308 permanent redirect with same method - Http() new attribute, `safe_methods` is public API, type is anything with `contains` operator, tuple is recommended. Defaults are GET,HEAD,OPTIONS,TRACE as per RFC7231. - invalidate cache per https://tools.ietf.org/html/rfc7234#section-4.4 before: `method not in [GET, HEAD]` now: `method not in [GET, HEAD, OPTIONS, TRACE]` and adjustable - 308 may be cached not by default as per RFC7538, but only with relevant headers #151
- Loading branch information
Showing
4 changed files
with
104 additions
and
32 deletions.
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
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