summaryrefslogtreecommitdiff
path: root/requests_cache/_utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Update type hints to appease Pylance and stricter mypy settingsJordan Cook2022-12-131-5/+7
|
* Some additional logging and testsJordan Cook2022-06-161-0/+4
|
* Add Placeholder.loads() (needed in some scenerios with missing dependencies ↵Jordan Cook2022-05-301-0/+3
| | | | when using PyInstaller)
* Add misc missing test coverageJordan Cook2022-04-201-3/+0
|
* Refactor refresh/revalidate behaviorJordan Cook2022-04-091-4/+17
| | | | | | | | | | | | | | | * Rename two (unreleased) options to be more consistent with browser behavior: * `revalidate()` -> `refresh()` * `refresh()` -> `force_refresh()` * Revert `RequestSettings` changes and use just kwargs instead for per-request settings * Add full type hints back to extra kwargs for `CachedSession.send()` * Fix a bug in which some kwargs specific to requests-cache could get passed to `requests.Session.send()` * Use 'must-revalidate' as a temporary header for a user-requested refresh * Refer to expiration value of 0 more accurately as 'expire immediately' rather than 'do not cache' * It may potentially be saved and used with revalidation, depending on other headers/settings * `DO_NOT_CACHE` now has a different value but same effect * Refer to constants in docs instead of 0, -1, etc. * Log more details about post-read and pre-cache checks
* More code cleanup and commentsJordan Cook2022-03-291-1/+1
|
* Split datetime-related utility functions into a separate moduleJordan Cook2022-03-291-2/+22
|
* Move misc minor utils to a separate moduleJordan Cook2021-10-271-0/+48