Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/psf/cachecontrol
/ types & classes
Types & classes
47 in github.com/psf/cachecontrol
⨍
Functions
218
◇
Types & classes
47
↓ 19 callers
Class
DictCache
cachecontrol/cache.py:35
↓ 12 callers
Class
DummyResponse
Match a ``urllib3.response.HTTPResponse``.
tests/utils.py:20
↓ 5 callers
Class
CacheController
An interface to see if request should cached or not.
cachecontrol/controller.py:50
↓ 4 callers
Class
CacheControlAdapter
cachecontrol/adapter.py:26
↓ 4 callers
Class
NullSerializer
tests/utils.py:10
↓ 3 callers
Class
DummyRequest
Match a Request.
tests/utils.py:33
↓ 2 callers
Class
CallbackFileWrapper
Small wrapper around a fp object which will tee everything read into a buffer, and when that file is closed it will execute a callback with t
cachecontrol/filewrapper.py:15
↓ 2 callers
Class
LastModified
If there is no Expires header already, fall back on Last-Modified using the heuristic from http://tools.ietf.org/html/rfc7234#section-4.2
cachecontrol/heuristics.py:97
↓ 2 callers
Class
Serializer
cachecontrol/serialize.py:17
↓ 1 callers
Class
DummyHeuristic
tests/test_expires_heuristics.py:46
↓ 1 callers
Class
ExpiresAfter
Cache **all** requests for a defined time period.
cachecontrol/heuristics.py:80
↓ 1 callers
Class
FileCache
Traditional FileCache: body is stored in memory, so not suitable for large downloads.
cachecontrol/caches/file_cache.py:107
↓ 1 callers
Class
NoAgeHeuristic
tests/issue_263.py:16
↓ 1 callers
Class
NoopHeuristic
tests/test_expires_heuristics.py:28
↓ 1 callers
Class
OneDayCache
Cache the response by providing an expires 1 day in the future.
cachecontrol/heuristics.py:60
↓ 1 callers
Class
RedisCache
cachecontrol/caches/redis_cache.py:16
↓ 1 callers
Class
SeparateBodyFileCache
Memory-efficient FileCache: body is stored in a separate file, reducing peak memory usage.
cachecontrol/caches/file_cache.py:117
↓ 1 callers
Class
Server
examples/benchmark.py:19
↓ 1 callers
Class
SimpleApp
tests/conftest.py:13
Class
BaseCache
cachecontrol/cache.py:19
Class
BaseHeuristic
cachecontrol/heuristics.py:27
Class
FileCacheTestsMixin
tests/test_storage_filecache.py:28
Class
SeparateBodyBaseCache
In this variant, the body is not stored mixed in with the metadata, but is passed in (as a bytes-like object) in a separate call to ``set_bod
cachecontrol/cache.py:55
Class
Test39
tests/test_regressions.py:14
Class
TestCacheControlRequest
tests/test_cache_control.py:225
Class
TestCacheControllerResponse
tests/test_cache_control.py:24
Class
TestChunkedResponses
tests/test_chunked_response.py:23
Class
TestDisabledETags
Test our use of ETags when the response is stale and the response has an ETag.
tests/test_etag.py:108
Class
TestETag
Test our equal priority caching with ETags Equal Priority Caching is a term I've defined to describe when ETags are cached orthgonally from T
tests/test_etag.py:16
Class
TestExpiresAfter
tests/test_expires_heuristics.py:89
Class
TestFileCache
Tests for ``FileCache``.
tests/test_storage_filecache.py:121
Class
TestHeuristicWith3xxResponse
tests/test_expires_heuristics.py:44
Class
TestHeuristicWithoutWarning
tests/test_expires_heuristics.py:26
Class
TestLastModified
tests/test_expires_heuristics.py:109
Class
TestMaxAge
tests/test_max_age.py:13
Class
TestModifiedUnitTests
tests/test_expires_heuristics.py:132
Class
TestMultipleChoicesRedirects
tests/test_redirects.py:35
Class
TestOneDayCache
tests/test_expires_heuristics.py:70
Class
TestPermanentRedirects
tests/test_redirects.py:14
Class
TestRedisCache
tests/test_storage_redis.py:11
Class
TestReleaseConnection
On 304s we still make a request using our connection pool, yet we do not call the parent adapter, which releases the connection back to t
tests/test_etag.py:145
Class
TestSeparateBodyFileCache
Tests for ``SeparateBodyFileCache``
tests/test_storage_filecache.py:144
Class
TestSerializer
tests/test_serialization.py:13
Class
TestSessionActions
tests/test_adapter.py:41
Class
TestUseExpiresHeuristic
tests/test_expires_heuristics.py:63
Class
TestVary
tests/test_vary.py:15
Class
_FileCacheMixin
Shared implementation for both FileCache variants.
cachecontrol/caches/file_cache.py:22