summaryrefslogtreecommitdiff
path: root/requests_cache/models/response.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix loading cached JSON content when decode_content=True and the root ↵Jordan Cook2023-05-081-1/+1
| | | | element is a list
* Update type hints to appease Pylance and stricter mypy settingsJordan Cook2022-12-131-4/+4
|
* 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-111-8/+4
| | | | 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-101-2/+3
|
* 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-301-3/+3
|
* 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
|
* Improve output for all models when printed or logged with richJordan Cook2022-04-191-2/+2
|
* 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-011-19/+40
| | | | 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]: ...>')
* Split datetime-related utility functions into a separate moduleJordan Cook2022-03-291-1/+1
|
* 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-021-1/+1
|
* 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
* Minor optimization: exclude redundant CachedResponse.cache_key and ↵Jordan Cook2021-08-251-6/+9
| | | | CachedHTTPResponse.headers from serialization, and set at runtime instead
* Some misc docstring editsJordan Cook2021-08-191-8/+2
|
* 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-161-3/+12
|
* Make CachedResponse a non-slotted class to allow client code to set ↵Jordan Cook2021-07-161-12/+5
| | | | arbitrary attributes on it
* Improve type annotations and fix type checking errorsJordan Cook2021-07-061-13/+15
|
* Add option to exclude expired responses in keys(), values(), and ↵Jordan Cook2021-07-031-5/+0
| | | | response_count()
* Add annotation for CachedResponse.history and add support for ForwardRef in ↵Jordan Cook2021-06-111-1/+1
| | | | BaseSerializer.structure
* Make cattrs optional, and other cleanupJordan Cook2021-05-261-22/+19
|
* Fix broken unit tests and add more coverageJordan Cook2021-05-261-1/+7
|
* Split out serializers and models into separate classesJordan Cook2021-05-261-0/+154