MCPcopy Create free account

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

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

↓ 3 callersMethodwarning_code
(&self)
http-cache/src/lib.rs:921
↓ 2 callersMethodanalyze_request_internal
Common request analysis logic shared between streaming and non-streaming implementations
http-cache/src/lib.rs:1916
↓ 2 callersMethodcache_mode
(&self, middleware: &impl Middleware)
http-cache/src/lib.rs:2808
↓ 2 callersMethodcall
(&mut self, _req: Request<Full<Bytes>>)
http-cache-tower/examples/hyper_streaming.rs:46
↓ 2 callersMethodcall
(&mut self, _req: Request<Full<Bytes>>)
http-cache-tower/examples/hyper_basic.rs:46
↓ 2 callersFunctionclone_req
(request: &Request)
http-cache-reqwest/src/lib.rs:374
↓ 2 callersFunctioncollect_body
Collect a body into bytes.
http-cache-tower-server/src/lib.rs:793
↓ 2 callersMethodconditional_fetch
Performs a conditional fetch (revalidation) against the origin, returning either the still-valid cached response or the fresh upstream response. Mirr
http-cache/src/lib.rs:2358
↓ 2 callersMethoddelete
Create a DELETE request
http-cache-ureq/src/lib.rs:401
↓ 2 callersMethodhandle_not_modified
( &self, cached_response: Response<Self::Body>, fresh_parts: &response::Parts, )
http-cache/src/lib.rs:3321
↓ 2 callersMethodinto_bytes
Convert to bytes, consuming the response
http-cache-ureq/src/lib.rs:741
↓ 2 callersMethodis_method_get_head
(&self)
http-cache-surf/src/lib.rs:200
↓ 2 callersFunctionmeasure_cache_hit_memory_usage
( payload_size: usize, is_streaming: bool, )
http-cache-tower/examples/tower_streaming_memory_profile.rs:108
↓ 2 callersFunctionmeasure_cache_hit_memory_usage
( payload_size: usize, is_streaming: bool, )
http-cache-reqwest/examples/reqwest_streaming_memory_profile.rs:81
↓ 2 callersMethodmethod
(&self)
http-cache-ureq/src/lib.rs:860
↓ 2 callersMethodmust_revalidate
(&self)
http-cache/src/lib.rs:975
↓ 2 callersMethodparts
(&self)
http-cache-ureq/src/lib.rs:852
↓ 2 callersMethodparts_to_http_response
Converts response parts to HttpResponse format for cache mode evaluation
http-cache/src/lib.rs:1762
↓ 2 callersMethodpolicy
(&self, response: &HttpResponse)
http-cache-surf/src/lib.rs:204
↓ 2 callersMethodpolicy_with_options
( &self, response: &HttpResponse, options: CacheOptions, )
http-cache-surf/src/lib.rs:207
↓ 2 callersMethodput
Create a PUT request
http-cache-ureq/src/lib.rs:391
↓ 2 callersFunctionread_body_bytes
( resp: Response<StreamingBody<Empty<Bytes>>>, )
http-cache/src/managers/streaming_cache.rs:1146
↓ 2 callersMethodremove_warning
Removes a warning header from a response
http-cache/src/lib.rs:955
↓ 2 callersMethodreset
(&self)
http-cache-tower/examples/tower_streaming_memory_profile.rs:37
↓ 2 callersMethodreset
(&self)
http-cache-reqwest/examples/reqwest_streaming_memory_profile.rs:40
↓ 2 callersFunctionresponse_must_revalidate
Returns `true` if the `cache-control` header of the response contains the `must-revalidate` directive.
http-cache/src/lib.rs:2023
↓ 2 callersMethodset
Add a header to the request
http-cache-ureq/src/lib.rs:446
↓ 2 callersMethodsize_hint
(&self)
http-cache-tower/src/lib.rs:1041
↓ 2 callersMethodurl
(&self)
http-cache-surf/src/lib.rs:250
↓ 2 callersFunctionurl_host_str
(url: &Url)
http-cache/src/lib.rs:437
↓ 1 callersFunctionadd_cache_status_headers
Helper function to add cache status headers to a response
http-cache-tower/src/lib.rs:204
↓ 1 callersFunctionadd_cache_status_headers_streaming
( mut response: Response<B>, hit_or_miss: &str, cache_lookup: &str, )
http-cache-tower/src/lib.rs:358
↓ 1 callersMethodclear
Clears all entries from the cache — moka, redb, and on-disk bodies.
http-cache/src/managers/streaming_cache.rs:549
↓ 1 callersFunctionconvert_reqwest_response_to_http_full_body
Converts a reqwest Response to an http::Response with Full body for streaming cache processing
http-cache-reqwest/src/lib.rs:494
↓ 1 callersFunctionconvert_response
Converts an [`HttpResponse`] to a reqwest [`Response`]
http-cache-reqwest/src/lib.rs:469
↓ 1 callersFunctionconvert_ureq_response_to_http_response
( mut response: http::Response<ureq::Body>, url: &str, )
http-cache-ureq/src/lib.rs:653
↓ 1 callersFunctioncreate_mock_server
(payload_size: usize)
http-cache-reqwest/examples/reqwest_streaming_memory_profile.rs:63
↓ 1 callersMethoddelete
(&self, cache_key: &str)
http-cache-tower-server/tests/integration.rs:50
↓ 1 callersMethoddelete
(&self, cache_key: &str)
http-cache-quickcache/src/lib.rs:231
↓ 1 callersFunctiondetermine_scheme
Determine the appropriate scheme for URL construction
http-cache/src/lib.rs:588
↓ 1 callersMethodempty_body
(&self)
http-cache/src/managers/streaming_cache.rs:1093
↓ 1 callersMethodentry_count
(&self)
http-cache/src/managers/streaming_cache.rs:538
↓ 1 callersFunctionexecute_json_request
Universal function for JSON requests - eliminates method-specific duplication
http-cache-ureq/src/lib.rs:631
↓ 1 callersFunctionextract_vary_headers
Extract Vary headers from response parts.
http-cache-tower-server/src/lib.rs:805
↓ 1 callersMethodforce_no_cache
(&mut self)
http-cache-surf/src/lib.rs:230
↓ 1 callersFunctionhttp_response_to_tower_response
Convert an [`HttpResponse`] from the cache core into a Tower `Response<HttpCacheBody<B>>`.
http-cache-tower/src/lib.rs:338
↓ 1 callersMethodinto_bytes_stream
Convert this streaming body into a stream of Bytes. This method allows for streaming without collecting the entire body into memory first.
http-cache/src/body.rs:368
↓ 1 callersMethodinto_json
( self, )
http-cache-ureq/src/lib.rs:748
↓ 1 callersFunctionis_cacheable_method
(method: &str)
http-cache-ureq/src/lib.rs:598
↓ 1 callersMethodis_stale
Check if this cached response is stale.
http-cache-tower-server/src/lib.rs:396
↓ 1 callersMethodkind
Get the error kind
http-cache/src/error.rs:367
↓ 1 callersMethodmetrics
Get a reference to the cache metrics.
http-cache-tower-server/src/lib.rs:528
↓ 1 callersFunctionparse_expires
Parse Expires header to calculate TTL. Returns the duration until expiration, or None if the date is invalid or in the past.
http-cache-tower-server/src/lib.rs:966
↓ 1 callersFunctionparse_max_age
Parse max-age from Cache-Control header.
http-cache-tower-server/src/lib.rs:942
↓ 1 callersFunctionparse_s_maxage
Parse s-maxage from Cache-Control header (shared cache specific).
http-cache-tower-server/src/lib.rs:953
↓ 1 callersMethodprepare_conditional_request
( &self, parts: &mut request::Parts, _cached_response: &Response<Self::Body>,
http-cache/src/lib.rs:3308
↓ 1 callersMethodput
( &self, cache_key: String, res: HttpResponse, policy: CachePolicy, )
http-cache-tower-server/tests/integration.rs:40
↓ 1 callersMethodput
( &self, cache_key: String, response: HttpResponse, policy: CachePolicy, )
http-cache-quickcache/src/lib.rs:219
↓ 1 callersMethodredb_get
Read a metadata row from redb by key.
http-cache/src/managers/streaming_cache.rs:646
↓ 1 callersFunctionresponse_permits_authorized_caching
Check if response explicitly permits caching of authorized requests per RFC 9111 §3.5. Returns true if the response contains directives that allow ca
http-cache-tower-server/src/lib.rs:828
↓ 1 callersFunctionresponse_remove_warning
Removes the warning header from an `http::Response`.
http-cache/src/lib.rs:2017
↓ 1 callersFunctionresponse_warning_code
Extracts the warning code from an `http::Response`'s warning header, if present. Returns the 3-digit warn-code as a `usize`.
http-cache/src/lib.rs:1987
↓ 1 callersFunctionrun_memory_analysis
()
http-cache-reqwest/examples/reqwest_streaming_memory_profile.rs:184
↓ 1 callersMethodsend_json
( self, data: serde_json::Value, )
http-cache-ureq/src/lib.rs:454
↓ 1 callersFunctionshould_cache
( req_parts: &http::request::Parts, res_parts: &http::response::Parts, options: &ServerCacheOption
http-cache-tower-server/src/lib.rs:834
↓ 1 callersFunctionsweep_tmp_dir
Delete every entry in `tmp_dir`. Called on startup after we hold the redb lock, so no concurrent put is in-flight.
http-cache/src/managers/streaming_cache.rs:724
↓ 1 callersFunctionurl_set_path
(url: &mut Url, path: &str)
http-cache/src/lib.rs:380
↓ 1 callersFunctionurl_set_query
(url: &mut Url, query: Option<&str>)
http-cache/src/lib.rs:397
↓ 1 callersFunctionversion_from_u8
Convert u8 back to HTTP version.
http-cache/src/managers/streaming_cache.rs:143
↓ 1 callersFunctionversion_to_u8
Convert HTTP version to u8 for compact storage.
http-cache/src/managers/streaming_cache.rs:131
Methodagent_config
Set the ureq agent configuration The provided configuration will be used to preserve your settings like timeout, proxy, TLS config, and user agent. H
http-cache-ureq/src/lib.rs:276
Methodalloc
(&self, layout: Layout)
http-cache-tower/examples/tower_streaming_memory_profile.rs:43
Methodalloc
(&self, layout: Layout)
http-cache-reqwest/examples/reqwest_streaming_memory_profile.rs:46
Functionbad_header
(e: reqwest::header::InvalidHeaderValue)
http-cache-reqwest/src/lib.rs:548
Functionbench_cache_hit_comparison
Benchmark cache hit performance - buffered vs streaming
http-cache-tower/benches/streaming_benchmark.rs:156
Functionbench_cache_miss_comparison
Benchmark cache miss performance - buffered vs streaming
http-cache-tower/benches/streaming_benchmark.rs:58
Functionbench_streaming_throughput
Benchmark streaming cache throughput with concurrent requests
http-cache-tower/benches/streaming_benchmark.rs:268
Methodbody_to_bytes_stream
( body: Self::Body, )
http-cache/src/managers/streaming_cache.rs:1097
Functionbody_types
()
http-cache-tower/src/test.rs:350
Methodbuffered
(data: Bytes)
http-cache/src/body.rs:118
Methodbuild_response_from_parts
Build a `Response<StreamingBody>` from an opened body file and validated metadata. File cursor must already be past the 16-byte nonce header.
http-cache/src/managers/streaming_cache.rs:696
Methodbuilder
Create a new builder
http-cache-ureq/src/lib.rs:366
Functioncacache
()
http-cache/src/test.rs:173
Functioncacache_bincode_entry_read_without_compat_feature
()
http-cache/src/test.rs:383
Functioncacache_bincode_migration_preserves_headers
()
http-cache/src/test.rs:324
Functioncacache_bincode_to_postcard_migration
()
http-cache/src/test.rs:269
Functioncacache_corrupt_data_returns_none
()
http-cache/src/test.rs:213
Methodcache
Create a cache operation error # Examples ```rust use http_cache::HttpCacheError; let err = HttpCacheError::cache("Cache entry not found"); ```
http-cache/src/error.rs:95
Functioncache_bust
()
http-cache-reqwest/src/test.rs:372
Functioncache_bust
()
http-cache-ureq/src/test.rs:313
Functioncache_busting
()
http-cache-tower/src/test.rs:387
Methodcache_dir
(&self)
http-cache/src/managers/streaming_cache.rs:527
Functioncache_hit_bypasses_rate_limiting
()
http-cache-surf/src/test.rs:1110
Functioncache_hit_bypasses_rate_limiting
()
http-cache-ureq/src/test.rs:1170
Functioncache_miss_applies_rate_limiting
()
http-cache-surf/src/test.rs:1146
Functioncache_miss_applies_rate_limiting
()
http-cache-ureq/src/test.rs:1205
Functioncache_mode
()
http-cache/src/test.rs:25
Methodcall
(&mut self, req: Request<ReqBody>)
http-cache-tower/src/lib.rs:762
Methodcall
(&mut self, _req: Request<Full<Bytes>>)
http-cache-tower/examples/tower_streaming_memory_profile.rs:86
Functioncan_convert_versions_from_http
()
http-cache/src/test.rs:102
← previousnext →101–200 of 612, ranked by callers