summaryrefslogtreecommitdiff
path: root/requests_cache/cache_keys.py
Commit message (Collapse)AuthorAgeFilesLines
* Match whether ignored_parameters are present in a request (without matching ↵Jordan Cook2022-09-291-8/+13
| | | | content)
* Add support for duplicate request paramsJordan Cook2022-08-151-13/+23
|
* Some additional logging and testsJordan Cook2022-06-161-2/+8
|
* Normalize ordering and whitespace for multi-value request headersJordan Cook2022-06-161-3/+17
|
* Consolidate BaseCache convenience methods into contains(), filter(), and ↵Jordan Cook2022-06-111-9/+4
| | | | delete()
* Add misc missing test coverageJordan Cook2022-04-201-3/+2
|
* Refactor utilities for parsing cache headers into CacheDirectives classJordan Cook2022-04-181-1/+1
|
* Add serializer name to cache key to avoid errors due to switching serializersJordan Cook2022-04-151-1/+3
|
* Add default list of ignored_parameters for most common authentication ↵Jordan Cook2022-04-101-3/+2
| | | | params/headers
* Remove 'default exclude headers', since match_headers now accepts a list of ↵Jordan Cook2022-04-101-10/+3
| | | | specific headers to match
* Split datetime-related utility functions into a separate moduleJordan Cook2022-03-291-15/+2
|
* Fix typoJordan Cook2022-03-171-1/+1
|
* Skip normalizing a JSON request body if it's excessively large (>10MB) due ↵Jordan Cook2022-02-221-2/+5
| | | | to performance impact
* Fix request normalization for request body with a list as a JSON rootJordan Cook2022-02-221-2/+17
|
* Skip empty body decode/encode in normalize_json_bodyElan Ruusamäe2022-02-031-0/+4
| | | | | There's no point to decode/encode empty input. It will always fail and original be returned.
* Add support for key-only request parametersJordan Cook2022-01-141-2/+7
|
* Bump invalid JSON message from 'warning' to 'debug' log levelJordan Cook2022-01-101-1/+1
| | | | Fixes #494
* Format using a more typical line length of 100Jordan Cook2022-01-011-2/+6
|
* Fix black and type checking issues, and update changelogJordan Cook2022-01-011-2/+3
|
* make order of headers repeatableSergey Chvalyuk2021-12-171-0/+1
| | | | Signed-off-by: Sergey Chvalyuk <grubberr@gmail.com>
* Move misc minor utils to a separate moduleJordan Cook2021-10-271-1/+1
|
* Fix some type checking issues with latest mypy pre-commit hook versionJordan Cook2021-10-231-2/+2
|
* Reorganize & improve request normalization functions:Jordan Cook2021-09-201-119/+124
| | | | | | | | | | | | * Handle all normalization in `cache_keys` module, get rid of `normalize_dict()` function used in `CachedSession` * Reorganize `cache_keys` helper functions into the following: * `normalize_request()` * `normalize_url()` * `normalize_headers()` * `normalize_params()` * `normalize_body()` * `normalize_json_body()` * `redact_response()`
* Redact ingored_parameters from CachedResponse.urlJordan Cook2021-09-151-14/+23
|
* Use blake2 instead of sha256 for hashing request infoJordan Cook2021-09-061-2/+3
| | | | | | | | | With an 8-byte digest for shorter cache keys. This is still plenty long enough to avoid hash collisions: `4e-15` for 100,000 items, `4e-7` chance for 1 billion items, etc. This makes it more convenient for manually inspecting cache items, especially for the filesystem backend, which uses cache keys as filenames.
* Allow match_headers to optionally accept a list of specific headers to matchJordan Cook2021-09-061-30/+47
|
* Alias/rename 'include_get_headers' to 'match_headers' for clarity ↵Jordan Cook2021-09-061-2/+2
| | | | (backwards-compatibile)
* Fix some type checking issuesJordan Cook2021-08-281-0/+2
|
* Allow has_url(), delete_url(), and create_key() to optionally take ↵Jordan Cook2021-08-281-10/+11
| | | | requests.Request arguments
* Add some additional tests for cache key normalizationJordan Cook2021-08-281-2/+1
|
* Move autosummaries to module docstrings instead of template, to make them ↵Jordan Cook2021-08-201-0/+4
| | | | easier to customize
* Some misc docstring editsJordan Cook2021-08-191-6/+10
|
* Exclude cache headers from cache key by defaultJordan Cook2021-08-141-1/+3
|
* Add support for custom cache keysJordan Cook2021-08-141-22/+31
|
* Add support for Last-Modified + If-Modified-Since headersJordan Cook2021-08-141-0/+1
|
* Replace some 'type: ignore' statements with better type hintingJordan Cook2021-08-141-13/+18
|
* Improve type annotations and fix type checking errorsJordan Cook2021-07-061-34/+42
|
* Integrate serializers with backendsJordan Cook2021-06-111-14/+16
|
* remove 'ignored parameters' from request prior to cachingParker Hancock2021-06-031-0/+19
|
* Don't show warnings for 'include_get_headers' and 'ignored_parameters' ↵Jordan Cook2021-04-181-1/+1
| | | | | | | kwargs in BaseStorage Also don't name them as private members, since they can safely by changed after initialization (e.g., `session.cache.include_get_headers = True`)
* Add 'verify' param to cache keyJordan Cook2021-04-011-2/+4
| | | | Closes #209
* Rename 'add_key_mapping' to 'save_redirect' and take a request instead of a ↵Jordan Cook2021-03-311-4/+4
| | | | cache key
* Move cache key utilities to a separate moduleJordan Cook2021-03-301-0/+109