MCPcopy Create free account

hub / github.com/06chaynes/http-cache / functions

Functions612 in github.com/06chaynes/http-cache

↓ 440 callersMethodclone
(&self)
http-cache-tower/src/lib.rs:702
↓ 274 callersMethodbody
Create a body processing error # Examples ```rust use http_cache::HttpCacheError; let err = HttpCacheError::body("Failed to collect request body");
http-cache/src/error.rs:121
↓ 219 callersMethodget
Create a GET request
http-cache-ureq/src/lib.rs:371
↓ 147 callersMethodheader
Get a header value
http-cache-ureq/src/lib.rs:709
↓ 106 callersMethodstatus
Get the response status code
http-cache-ureq/src/lib.rs:699
↓ 96 callersMethodbuild
Build the cached agent
http-cache-ureq/src/lib.rs:300
↓ 73 callersMethodcall
Execute the request with caching
http-cache-ureq/src/lib.rs:514
↓ 66 callersMethodcall
(&mut self, req: Request<ReqBody>)
http-cache-tower-server/src/lib.rs:614
↓ 59 callersMethodinsert
Inserts a header key-value pair, replacing any existing values for that key Keys are normalized to lowercase per RFC 7230
http-cache/src/lib.rs:682
↓ 54 callersMethodmethod
(&self)
http-cache-tower/src/lib.rs:293
↓ 53 callersMethodcall
(&mut self, _req: Request<Full<Bytes>>)
http-cache-tower/src/test.rs:75
↓ 49 callersMethodlayer
(&self, inner: S)
http-cache-tower/src/lib.rs:671
↓ 48 callersFunctionurl_parse
(s: &str)
http-cache/src/lib.rs:363
↓ 38 callersMethodlayer
(&self, inner: S)
http-cache-tower-server/src/lib.rs:556
↓ 37 callersMethodcache_manager
Set the cache manager
http-cache-ureq/src/lib.rs:282
↓ 36 callersMethodcache_mode
Set the cache mode
http-cache-ureq/src/lib.rs:288
↓ 35 callersFunctioncreate_cache_manager
Helper function to create a temporary cache manager
http-cache-reqwest/src/test.rs:15
↓ 33 callersMethodcreate_cache_key
( &self, parts: &request::Parts, override_method: Option<&str>, )
http-cache/src/lib.rs:1714
↓ 33 callersMethoddelete
(&self, cache_key: &str)
http-cache/src/managers/moka.rs:215
↓ 29 callersMethodanalyze_request
( &self, parts: &request::Parts, mode_override: Option<CacheMode>, )
http-cache/src/lib.rs:3064
↓ 29 callersFunctionbuild_mock
( cache_control_val: &str, body: &[u8], status: u16, expect: u64, )
http-cache-reqwest/src/test.rs:24
↓ 29 callersMethodget
Retrieves the first value for a given header key Keys are normalized to lowercase per RFC 7230
http-cache/src/lib.rs:717
↓ 27 callersFunctionbuild_mock
( cache_control_val: &str, body: &[u8], status: u16, expect: u64, )
http-cache-ureq/src/test.rs:18
↓ 26 callersMethodget
( &self, cache_key: &str, )
http-cache-tower-server/tests/integration.rs:33
↓ 26 callersMethoditer
Returns an iterator over the header key-value pairs
http-cache/src/lib.rs:755
↓ 24 callersMethodput
( &self, cache_key: String, response: Response<B>, policy: CachePolicy,
http-cache/src/managers/streaming_cache.rs:859
↓ 24 callersFunctionresponse_with_body
(bytes: Bytes)
http-cache/src/managers/streaming_cache.rs:1138
↓ 24 callersFunctionsample_policy
()
http-cache/src/managers/streaming_cache.rs:1120
↓ 24 callersFunctiontest_url
()
http-cache/src/managers/streaming_cache.rs:1134
↓ 20 callersFunctionbuild_mock
( cache_control_val: &str, body: &[u8], status: u16, expect: u64, )
http-cache-surf/src/test.rs:86
↓ 18 callersMethodmethod
(&self)
http-cache-surf/src/lib.rs:253
↓ 16 callersMethodappend
Appends a header value, preserving existing values for the same key Keys are normalized to lowercase per RFC 7230
http-cache/src/lib.rs:698
↓ 16 callersMethodlookup_cached_response
( &self, key: &str, )
http-cache/src/lib.rs:3072
↓ 14 callersMethodcache_options
Set cache options
http-cache-ureq/src/lib.rs:294
↓ 14 callersMethodrun
The main streaming cache orchestrator. This mirrors the logic of [`HttpCache::run`] but operates on streaming `Response<B>` bodies and delegates upst
http-cache/src/lib.rs:2172
↓ 13 callersFunctioncreate_streaming_cache_manager
Helper function to create a streaming cache manager
http-cache-reqwest/src/test.rs:1281
↓ 13 callersMethodprocess_response
( &self, analysis: CacheAnalysis, response: Response<B>, metadata: Option<Vec<
http-cache/src/lib.rs:3079
↓ 13 callersMethodremove
Removes a header key and its associated values Keys are normalized to lowercase per RFC 7230
http-cache/src/lib.rs:730
↓ 12 callersMethodget
( &self, cache_key: &str, )
http-cache/src/managers/streaming_cache.rs:761
↓ 12 callersMethodinto_response
Convert to an HTTP response.
http-cache-tower-server/src/lib.rs:404
↓ 12 callersMethodput
( &self, cache_key: String, response: HttpResponse, policy: CachePolicy, )
http-cache/src/managers/moka.rs:184
↓ 11 callersFunctionbody_hash_for
Compute the deterministic on-disk body hash for a cache key.
http-cache/src/managers/streaming_cache.rs:155
↓ 11 callersFunctionextract_url_from_request_parts
Extract a URL from HTTP request parts for cache key generation This function reconstructs the full URL from the request parts, handling both HTTP and
http-cache/src/lib.rs:553
↓ 11 callersMethodparts
Returns `http::response::Parts`
http-cache/src/lib.rs:904
↓ 10 callersMethodcache_lookup_status
Adds the custom `x-cache-lookup` header to the response
http-cache/src/lib.rs:987
↓ 10 callersMethodcache_status
Adds the custom `x-cache` header to the response
http-cache/src/lib.rs:982
↓ 10 callersMethodinvalidate
Invalidate a specific cache entry by its key.
http-cache-tower-server/src/lib.rs:533
↓ 9 callersFunctionresponse_cache_lookup_status
Adds the custom `x-cache-lookup` status header to an `http::Response`.
http-cache/src/lib.rs:2042
↓ 9 callersFunctionresponse_cache_status
Adds the custom `x-cache` status header to an `http::Response`.
http-cache/src/lib.rs:2032
↓ 9 callersMethodrun_pending_tasks
Runs pending maintenance tasks (eviction, etc). This is called automatically but can be invoked manually to force immediate cleanup.
http-cache/src/managers/streaming_cache.rs:611
↓ 8 callersMethodapply_rate_limiting
(&self, url: &Url)
http-cache/src/lib.rs:2119
↓ 8 callersFunctionbody_path_for
Compute the full body file path for a given body hash.
http-cache/src/managers/streaming_cache.rs:160
↓ 8 callersMethodcache_err
(self)
http-cache-tower/src/lib.rs:198
↓ 8 callersMethodclear
Clears out the entire cache.
http-cache/src/managers/moka.rs:112
↓ 8 callersMethodcurrent_usage
(&self)
http-cache-tower/examples/tower_streaming_memory_profile.rs:33
↓ 8 callersMethodcurrent_usage
(&self)
http-cache-reqwest/examples/reqwest_streaming_memory_profile.rs:36
↓ 8 callersMethodget
( &self, cache_key: &str, )
http-cache-quickcache/src/lib.rs:208
↓ 7 callersFunctionhas_directive
Determine if a response should be cached based on its headers. Implements RFC 7234/9111 requirements for shared caches. Helper function to check if a
http-cache-tower-server/src/lib.rs:817
↓ 7 callersMethodredb_remove
Remove a key from redb. Swallows errors at debug level; used by self-heal paths.
http-cache/src/managers/streaming_cache.rs:617
↓ 7 callersMethodrequest
Create a request with a custom method
http-cache-ureq/src/lib.rs:421
↓ 7 callersMethoduntil_key_ready
( &self, key: &str, )
http-cache/src/test.rs:1314
↓ 7 callersMethodwith_options
Set custom options.
http-cache-tower-server/src/lib.rs:522
↓ 6 callersMethodcache_key
(&self, req: &Request<B>)
http-cache-tower-server/src/lib.rs:202
↓ 6 callersMethodcall
(&mut self, _req: Request<Full<Bytes>>)
http-cache-tower/benches/streaming_benchmark.rs:39
↓ 6 callersMethodcan_cache_request
Determines if the request described by `parts` should be cached, taking into account any `mode_override`.
http-cache/src/lib.rs:2104
↓ 6 callersMethodconvert_body
( &self, response: Response<B>, )
http-cache/src/managers/streaming_cache.rs:1037
↓ 6 callersMethodpost
Create a POST request
http-cache-ureq/src/lib.rs:381
↓ 6 callersMethodremote_fetch
( &self, middleware: &mut impl Middleware, )
http-cache/src/lib.rs:2818
↓ 6 callersFunctionto_middleware_error
Helper function to convert our error types to reqwest middleware errors
http-cache-reqwest/src/lib.rs:300
↓ 5 callersMethodas_bytes
Get the response body as bytes
http-cache-ureq/src/lib.rs:736
↓ 5 callersMethodgenerate_metadata
Generates metadata for a response using the metadata_provider callback if configured
http-cache/src/lib.rs:1796
↓ 5 callersMethodhead
Create a HEAD request
http-cache-ureq/src/lib.rs:411
↓ 5 callersMethodparts
(&self)
http-cache-reqwest/src/lib.rs:415
↓ 5 callersMethodremote_fetch_and_cache
Processes a fresh upstream response and potentially caches it. Mirrors [`HttpCache::remote_fetch`] but receives the response directly rather than cal
http-cache/src/lib.rs:2324
↓ 5 callersMethodshould_cache_response
Determines if a response should be cached based on cache mode and HTTP semantics
http-cache/src/lib.rs:1890
↓ 5 callersMethodupdate_headers
Update the headers from `http::response::Parts`
http-cache/src/lib.rs:960
↓ 5 callersFunctionurl_hostname
(url: &Url)
http-cache/src/lib.rs:415
↓ 4 callersMethodadd_warning
Adds a warning header to a response
http-cache/src/lib.rs:928
↓ 4 callersMethodcontains_key
Checks if a header key exists Keys are normalized to lowercase per RFC 7230
http-cache/src/lib.rs:745
↓ 4 callersMethodevaluate_response_cache_mode
Evaluates response-based cache mode override
http-cache/src/lib.rs:1779
↓ 4 callersFunctionexecute_request
Universal function to execute HTTP requests - replaces all method-specific duplication
http-cache-ureq/src/lib.rs:603
↓ 4 callersMethodmethod
(&self)
http-cache-reqwest/src/lib.rs:440
↓ 4 callersMethodmodify_response_before_caching
Modifies the response before caching if a modifier function is provided
http-cache/src/lib.rs:1807
↓ 4 callersMethodparts
(&self)
http-cache-surf/src/lib.rs:234
↓ 4 callersMethodrun_no_cache
Performs cache-busting housekeeping for requests that should not be cached. Mirrors [`HttpCache::run_no_cache`].
http-cache/src/lib.rs:2135
↓ 3 callersFunctionapply_modify_response_shim
Applies [`HttpCacheOptions::modify_response_before_caching`] to a streaming `Response<B>`. The callback expects `&mut HttpResponse`, so we build a te
http-cache/src/lib.rs:2058
↓ 3 callersFunctionapply_ttl_constraints
Apply min/max TTL constraints from options.
http-cache-tower-server/src/lib.rs:924
↓ 3 callersMethodbuild_http_parts
(&self)
http-cache-ureq/src/lib.rs:894
↓ 3 callersFunctionbuild_mock
( cache_control_val: &str, body: &[u8], status: u16, expect: u64, )
http-cache-quickcache/src/test.rs:14
↓ 3 callersFunctioncache_bust
()
http-cache-surf/src/test.rs:705
↓ 3 callersMethodcreate_cache_policy
Creates a cache policy for the given request and response
http-cache/src/lib.rs:1814
↓ 3 callersMethoddelete
(&self, cache_key: &str)
http-cache/src/managers/streaming_cache.rs:1080
↓ 3 callersMethodinto_iter
(self)
http-cache/src/lib.rs:816
↓ 3 callersMethodnext
(&mut self)
http-cache/src/lib.rs:843
↓ 3 callersMethodoverridden_cache_mode
Allows the cache mode to be overridden. This overrides any cache mode set in the configuration, including cache_mode_fn.
http-cache/src/lib.rs:1093
↓ 3 callersMethodparts
(&self)
http-cache-tower/src/lib.rs:285
↓ 3 callersFunctionresponse_add_warning
Adds an RFC 2616 §14.46 warning header to an `http::Response`.
http-cache/src/lib.rs:1996
↓ 3 callersMethodrun_no_cache_from_parts
Cache-busting for non-cacheable requests, taking pre-extracted parts.
http-cache/src/lib.rs:2666
↓ 3 callersMethodurl
(&self)
http-cache-reqwest/src/lib.rs:436
↓ 3 callersMethodurl
Get the response URL
http-cache-ureq/src/lib.rs:704
next →1–100 of 612, ranked by callers