summaryrefslogtreecommitdiff
path: root/requests_cache/models
Commit message (Collapse)AuthorAgeFilesLines
* Add compatibility with urllib3 2.0Jordan Cook2023-05-151-11/+20
|
* Fix loading cached JSON content when decode_content=True and the root ↵Jordan Cook2023-05-081-1/+1
| | | | element is a list
* Enable bugbear extension and fix warningsJordan Cook2023-05-081-1/+1
|
* Update type hints to appease Pylance and stricter mypy settingsJordan Cook2022-12-132-8/+8
|
* Check if raw._fp is None before trying is_fp_closed()Jordan Cook2022-12-041-1/+1
|
* Fix issue on Windows with occasional missing `CachedResponse.created_at` ↵Jordan Cook2022-09-301-2/+4
| | | | timestamp
* Remove HTTPResponse attributes from the cache, and re-construct ↵Jordan Cook2022-06-112-28/+35
| | | | CachedResponse.raw after deserialization
* Consolidate BaseCache convenience methods into contains(), filter(), and ↵Jordan Cook2022-06-111-1/+1
| | | | delete()
* Split up remove_expired_reponses() into remove() and reset_expiration() ↵Jordan Cook2022-06-111-2/+2
| | | | methods, with more granular arguments
* Change this into an option for CattrStage instead of a separate classJordan Cook2022-06-102-3/+4
|
* Add serializer stage that decodes/re-encodes response contentJordan Cook2022-06-101-0/+1
|
* Add a base model repr that excludes default values even if rich isn't installedJordan Cook2022-05-304-7/+18
|
* Add CachedRequest.path_url propertyJordan Cook2022-05-181-0/+8
|
* Add 'older_than' argument to remove_expired_responses()Jordan Cook2022-05-031-9/+14
|
* Add always_revalidate session optionJordan Cook2022-05-031-2/+2
|
* Fix remove_expired_responses() with SQLite and expire_after=0Jordan Cook2022-04-301-1/+1
|
* For SQLite expires column, use time.time() instead of datetime.timestamp()Jordan Cook2022-04-221-2/+9
|
* Merge *PickleDict storage classes into parent classesJordan Cook2022-04-221-4/+4
|
* Add misc missing test coverageJordan Cook2022-04-201-1/+1
|
* Improve output for all models when printed or logged with richJordan Cook2022-04-195-4/+30
|
* Refactor utilities for parsing cache headers into CacheDirectives classJordan Cook2022-04-181-2/+1
|
* Move all cache policy-related modules to separate 'policy' subpackageJordan Cook2022-04-171-2/+2
|
* Fix structuring/unstructuring CachedResponse.historyJordan Cook2022-04-151-7/+14
|
* Add an intermediate wrapper class, OriginalResponse, to provide type hints ↵Jordan Cook2022-04-012-21/+42
| | | | for extra attributes set on requests.Response objects
* Make CachedResponse.__str__ a bit more consistent with Response ('<class ↵Jordan Cook2022-04-011-20/+14
| | | | [status_code]: ...>')
* Move settings module to top level package, and leave 'models' subpackage for ↵Jordan Cook2022-04-012-73/+0
| | | | only serialized data models
* Add argument docs back to CachedSession.__init__ instead of generic ↵Jordan Cook2022-04-012-33/+16
| | | | **kwargs; init settings in CachedSession instead of BaseCache
* Update docs, doc dependencies, changelog, and contributorsJordan Cook2022-04-011-0/+6
| | | | | Also: Restrict redis-py to <4.2, which breaks parameter forwarding on python 3.7 and 3.8
* More code cleanup and commentsJordan Cook2022-03-291-24/+24
|
* Fix some regression bugs and broken testsJordan Cook2022-03-291-4/+5
|
* Split datetime-related utility functions into a separate moduleJordan Cook2022-03-292-2/+2
|
* Refactor request-level settings into separate RequestSettings classJordan Cook2022-03-292-5/+31
|
* Refactor session-level settings into separate CacheSettings classJordan Cook2022-03-292-0/+57
|
* Reword inaccurate usage of the term 'revalidate'Jordan Cook2022-03-111-1/+1
|
* Update to mypy v0.931 and add some ignores/workarounds for new false positivesJordan Cook2022-02-023-6/+11
|
* Format using a more typical line length of 100Jordan Cook2022-01-011-1/+4
|
* Add a new RedisDict class that stores responses in separate hashes instead ↵Jordan Cook2021-12-011-0/+8
| | | | of in a single hash
* Update CachedResponse headers with 304 response headers (RFC7234)Manuel Eggimann2021-11-301-3/+8
|
* Add back overrides for requests.Response.__getstate__ and __setstate__ so ↵Jordan Cook2021-11-241-0/+9
| | | | plain pickle will work as a serializer
* Move response content reset to DictStorage.__getitem__(), since that's the ↵Jordan Cook2021-10-231-4/+0
| | | | only place it's used
* Reorganize & improve request normalization functions:Jordan Cook2021-09-202-3/+8
| | | | | | | | | | | | * 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()`
* Minor optimization: exclude redundant CachedResponse.cache_key and ↵Jordan Cook2021-08-252-9/+16
| | | | CachedHTTPResponse.headers from serialization, and set at runtime instead
* Better serializer docsJordan Cook2021-08-201-0/+1
|
* Some misc docstring editsJordan Cook2021-08-193-11/+4
|
* Add support for Last-Modified + If-Modified-Since headersJordan Cook2021-08-141-4/+0
|
* Add support for ETag + If-None-Match headersJordan Cook2021-08-141-3/+7
|
* Drop support for python 3.6Jordan Cook2021-08-141-6/+0
|
* Add CachedResponse.cache_key attribute and update in CachedSession.send()Jordan Cook2021-07-201-1/+5
|
* Fix unpickling CachedResponse on python 3.6Jordan Cook2021-07-161-0/+6
|
* Add support for Response.next when 302 responses are cached directlyJordan Cook2021-07-162-4/+25
|