MCPcopy Create free account

hub / github.com/psf/cachecontrol / functions

Functions218 in github.com/psf/cachecontrol

Methodsess
(self, url)
tests/test_max_age.py:15
Methodsess
(self, url)
tests/test_vary.py:17
Methodset
( self, key: str, value: bytes, expires: int | datetime | None = None )
cachecontrol/cache.py:43
Methodset
( self, key: str, value: bytes, expires: int | datetime | None = None )
cachecontrol/caches/file_cache.py:74
Methodset
( self, key: str, value: bytes, expires: int | datetime | None = None )
cachecontrol/caches/redis_cache.py:23
Methodset_body
(self, key: str, body: bytes)
cachecontrol/caches/file_cache.py:130
Methodsetup_method
(self)
tests/test_redirects.py:15
Methodsetup_method
(self)
tests/test_redirects.py:36
Methodsetup_method
(self)
tests/test_expires_heuristics.py:27
Methodsetup_method
(self)
tests/test_expires_heuristics.py:45
Methodsetup_method
(self)
tests/test_expires_heuristics.py:71
Methodsetup_method
(self)
tests/test_expires_heuristics.py:90
Methodsetup_method
(self)
tests/test_expires_heuristics.py:110
Methodsetup_method
(self)
tests/test_expires_heuristics.py:136
Methodsetup_method
(self)
tests/test_storage_redis.py:12
Methodsetup_method
(self)
tests/test_cache_control.py:228
Methodsetup_method
(self)
tests/test_serialization.py:14
Functionstart_server
()
examples/benchmark.py:31
Methodstream
(self, env, start_response)
tests/conftest.py:97
Methodtest_body_actually_stored_separately
Body is stored and can be retrieved from the SeparateBodyFileCache, with assurances it's actually being loaded from separate file tha
tests/test_storage_filecache.py:151
Methodtest_body_stored_inline
The body is stored together with the metadata.
tests/test_storage_filecache.py:128
Methodtest_bust_cache_on_redirect
(self, url)
tests/test_redirects.py:24
Methodtest_bust_cache_on_redirect
(self, url)
tests/test_redirects.py:46
Methodtest_cache_chunked_response
Verify that an otherwise cacheable response is cached when the response is chunked.
tests/test_chunked_response.py:24
Methodtest_cache_for_one_day
(self, url)
tests/test_expires_heuristics.py:75
Methodtest_cache_request_fresh_expires
(self)
tests/test_cache_control.py:280
Methodtest_cache_request_fresh_max_age
(self)
tests/test_cache_control.py:263
Methodtest_cache_request_max_age_0
(self)
tests/test_cache_control.py:255
Methodtest_cache_request_no_cache
(self)
tests/test_cache_control.py:243
Methodtest_cache_request_no_headers
(self)
tests/test_cache_control.py:235
Methodtest_cache_request_no_store
(self)
tests/test_cache_control.py:251
Methodtest_cache_request_not_in_cache
(self)
tests/test_cache_control.py:259
Methodtest_cache_request_pragma_no_cache
(self)
tests/test_cache_control.py:247
Methodtest_cache_request_unfresh_expires
(self)
tests/test_cache_control.py:290
Methodtest_cache_request_unfresh_max_age
(self)
tests/test_cache_control.py:272
Methodtest_cache_response_cache_max_age
(self, cc)
tests/test_cache_control.py:80
Methodtest_cache_response_cache_max_age_with_invalid_value_not_cached
(self, cc)
tests/test_cache_control.py:88
Methodtest_cache_response_no_cache_control
(self, cc)
tests/test_cache_control.py:74
Methodtest_cache_response_no_store
(self)
tests/test_cache_control.py:96
Methodtest_cache_response_no_store_with_etag
(self, cc)
tests/test_cache_control.py:109
Methodtest_cached_request_with_bad_max_age_headers_not_returned
(self)
tests/test_cache_control.py:300
Methodtest_client_max_age_0
Making sure when the client uses max-age=0 we don't get a cached copy even though we're still fresh.
tests/test_max_age.py:24
Methodtest_client_max_age_3600
Verify we get a cached value when the client has a reasonable max-age value.
tests/test_max_age.py:40
Methodtest_close
(self)
tests/test_adapter.py:65
Methodtest_delete_invalidates_cache
(self, url, sess)
tests/test_adapter.py:60
Methodtest_do_not_leak_response
(self, url, sess)
tests/test_adapter.py:73
Methodtest_etags_get_example
RFC 2616 14.26 The If-None-Match request-header field is used with a method to make it conditional. A client that has one or more ent
tests/test_etag.py:36
Methodtest_etags_get_no_cache
A 'Cache-Control: no-cache' header stops us from using the cache directly, but not from using the 'If-None-Match' header on the request.
tests/test_etag.py:82
Methodtest_etags_get_with_range
A 'Range' header stops us from using the cache altogether.
tests/test_etag.py:97
Methodtest_expired_etags_if_none_match_response
Make sure an expired response that contains an ETag uses the If-None-Match header.
tests/test_etag.py:126
Methodtest_expires_after_one_day
(self, url)
tests/test_expires_heuristics.py:94
Methodtest_expires_heuristic_arg
(self)
tests/test_expires_heuristics.py:64
Methodtest_expires_is_not_replaced_when_present
(self)
tests/test_expires_heuristics.py:152
Methodtest_expiry_is_no_more_that_twenty_four_hours
(self)
tests/test_expires_heuristics.py:201
Methodtest_file_cache_recognizes_consumed_file_handle
(self, url)
tests/test_regressions.py:15
Methodtest_filecache_directory_already_exists
Assert no errors are raised when using a cache directory that already exists on the filesystem.
tests/test_storage_filecache.py:62
Methodtest_filecache_directory_not_exists
(self, tmpdir, sess)
tests/test_storage_filecache.py:47
Methodtest_filecache_from_cache
(self, sess)
tests/test_storage_filecache.py:41
Methodtest_filecache_with_delete_request
(self, tmpdir, sess)
tests/test_storage_filecache.py:108
Methodtest_filecache_with_put_request
(self, tmpdir, sess)
tests/test_storage_filecache.py:114
Methodtest_get_caches
(self, url, sess)
tests/test_adapter.py:42
Methodtest_get_with_no_cache_does_not_cache
(self, url, sess)
tests/test_adapter.py:46
Functiontest_getattr_during_gc
()
tests/test_regressions.py:24
Methodtest_heuristic_applies_to_301
(self, url)
tests/test_expires_heuristics.py:52
Methodtest_heuristic_applies_to_304
(self, url)
tests/test_expires_heuristics.py:57
Functiontest_http11
(url)
tests/test_server_http_version.py:8
Methodtest_key_length
Hash table keys: Most file systems have a 255 characters path limitation. * Make sure hash method does not produce t
tests/test_storage_filecache.py:82
Methodtest_last_modified
(self, url)
tests/test_expires_heuristics.py:114
Methodtest_last_modified_is_not_used_when_cache_control_present
(self)
tests/test_expires_heuristics.py:164
Methodtest_last_modified_is_not_used_when_status_is_unknown
(self)
tests/test_expires_heuristics.py:175
Methodtest_last_modified_is_used
(self)
tests/test_expires_heuristics.py:156
Methodtest_last_modified_is_used_when_cache_control_public
(self)
tests/test_expires_heuristics.py:179
Methodtest_load_by_version_v0
(self)
tests/test_serialization.py:34
Methodtest_load_by_version_v1
(self)
tests/test_serialization.py:40
Methodtest_load_by_version_v2
(self)
tests/test_serialization.py:46
Methodtest_load_by_version_v3
(self)
tests/test_serialization.py:52
Methodtest_lock_class
(self, tmpdir)
tests/test_storage_filecache.py:102
Methodtest_multiple_choices_is_cacheable
(self, url)
tests/test_redirects.py:39
Methodtest_no_body_creates_response_file_handle_on_dumps
(self, url)
tests/test_serialization.py:98
Methodtest_no_cache_non_20x_response
(self, cc)
tests/test_cache_control.py:42
Methodtest_no_cache_with_no_date
(self, cc)
tests/test_cache_control.py:59
Methodtest_no_cache_with_vary_star
(self, cc)
tests/test_cache_control.py:115
Methodtest_no_cache_with_wrong_sized_body
(self, cc)
tests/test_cache_control.py:66
Methodtest_no_expiry_is_inferred_when_no_last_modified_is_present
(self)
tests/test_expires_heuristics.py:149
Methodtest_no_header_change_means_no_warning_header
(self, url)
tests/test_expires_heuristics.py:37
Methodtest_no_incomplete_read_on_dumps
(self, url)
tests/test_serialization.py:112
Methodtest_no_vary_header
(self, url)
tests/test_serialization.py:85
Methodtest_not_modified_releases_connection
(self, server, url)
tests/test_etag.py:154
Methodtest_patch_invalidates_cache
(self, url, sess)
tests/test_adapter.py:55
Methodtest_put_invalidates_cache
(self, url, sess)
tests/test_adapter.py:50
Methodtest_read_latest_version
(self, url)
tests/test_serialization.py:74
Methodtest_read_latest_version_streamable
(self, url)
tests/test_serialization.py:64
Methodtest_read_version_v4
(self)
tests/test_serialization.py:58
Methodtest_redirect_response_is_cached
(self, url)
tests/test_redirects.py:18
Methodtest_set_expiration_datetime
(self)
tests/test_storage_redis.py:16
Methodtest_set_expiration_datetime_aware
(self)
tests/test_storage_redis.py:20
Methodtest_set_expiration_int
(self)
tests/test_storage_redis.py:24
Methodtest_simple_lockfile_arg
(self, tmpdir)
tests/test_storage_filecache.py:96
Methodtest_stream_is_cached
(self, url, sess)
tests/test_chunked_response.py:41
Methodtest_stream_is_not_cached_when_content_is_not_read
(self, url, sess)
tests/test_chunked_response.py:52
← previousnext →101–200 of 218, ranked by callers