Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/06chaynes/http-cache
/ functions
Functions
612 in github.com/06chaynes/http-cache
⨍
Functions
612
◇
Types & classes
100
↓ 3 callers
Method
warning_code
(&self)
http-cache/src/lib.rs:921
↓ 2 callers
Method
analyze_request_internal
Common request analysis logic shared between streaming and non-streaming implementations
http-cache/src/lib.rs:1916
↓ 2 callers
Method
cache_mode
(&self, middleware: &impl Middleware)
http-cache/src/lib.rs:2808
↓ 2 callers
Method
call
(&mut self, _req: Request<Full<Bytes>>)
http-cache-tower/examples/hyper_streaming.rs:46
↓ 2 callers
Method
call
(&mut self, _req: Request<Full<Bytes>>)
http-cache-tower/examples/hyper_basic.rs:46
↓ 2 callers
Function
clone_req
(request: &Request)
http-cache-reqwest/src/lib.rs:374
↓ 2 callers
Function
collect_body
Collect a body into bytes.
http-cache-tower-server/src/lib.rs:793
↓ 2 callers
Method
conditional_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 callers
Method
delete
Create a DELETE request
http-cache-ureq/src/lib.rs:401
↓ 2 callers
Method
handle_not_modified
( &self, cached_response: Response<Self::Body>, fresh_parts: &response::Parts, )
http-cache/src/lib.rs:3321
↓ 2 callers
Method
into_bytes
Convert to bytes, consuming the response
http-cache-ureq/src/lib.rs:741
↓ 2 callers
Method
is_method_get_head
(&self)
http-cache-surf/src/lib.rs:200
↓ 2 callers
Function
measure_cache_hit_memory_usage
( payload_size: usize, is_streaming: bool, )
http-cache-tower/examples/tower_streaming_memory_profile.rs:108
↓ 2 callers
Function
measure_cache_hit_memory_usage
( payload_size: usize, is_streaming: bool, )
http-cache-reqwest/examples/reqwest_streaming_memory_profile.rs:81
↓ 2 callers
Method
method
(&self)
http-cache-ureq/src/lib.rs:860
↓ 2 callers
Method
must_revalidate
(&self)
http-cache/src/lib.rs:975
↓ 2 callers
Method
parts
(&self)
http-cache-ureq/src/lib.rs:852
↓ 2 callers
Method
parts_to_http_response
Converts response parts to HttpResponse format for cache mode evaluation
http-cache/src/lib.rs:1762
↓ 2 callers
Method
policy
(&self, response: &HttpResponse)
http-cache-surf/src/lib.rs:204
↓ 2 callers
Method
policy_with_options
( &self, response: &HttpResponse, options: CacheOptions, )
http-cache-surf/src/lib.rs:207
↓ 2 callers
Method
put
Create a PUT request
http-cache-ureq/src/lib.rs:391
↓ 2 callers
Function
read_body_bytes
( resp: Response<StreamingBody<Empty<Bytes>>>, )
http-cache/src/managers/streaming_cache.rs:1146
↓ 2 callers
Method
remove_warning
Removes a warning header from a response
http-cache/src/lib.rs:955
↓ 2 callers
Method
reset
(&self)
http-cache-tower/examples/tower_streaming_memory_profile.rs:37
↓ 2 callers
Method
reset
(&self)
http-cache-reqwest/examples/reqwest_streaming_memory_profile.rs:40
↓ 2 callers
Function
response_must_revalidate
Returns `true` if the `cache-control` header of the response contains the `must-revalidate` directive.
http-cache/src/lib.rs:2023
↓ 2 callers
Method
set
Add a header to the request
http-cache-ureq/src/lib.rs:446
↓ 2 callers
Method
size_hint
(&self)
http-cache-tower/src/lib.rs:1041
↓ 2 callers
Method
url
(&self)
http-cache-surf/src/lib.rs:250
↓ 2 callers
Function
url_host_str
(url: &Url)
http-cache/src/lib.rs:437
↓ 1 callers
Function
add_cache_status_headers
Helper function to add cache status headers to a response
http-cache-tower/src/lib.rs:204
↓ 1 callers
Function
add_cache_status_headers_streaming
( mut response: Response<B>, hit_or_miss: &str, cache_lookup: &str, )
http-cache-tower/src/lib.rs:358
↓ 1 callers
Method
clear
Clears all entries from the cache — moka, redb, and on-disk bodies.
http-cache/src/managers/streaming_cache.rs:549
↓ 1 callers
Function
convert_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 callers
Function
convert_response
Converts an [`HttpResponse`] to a reqwest [`Response`]
http-cache-reqwest/src/lib.rs:469
↓ 1 callers
Function
convert_ureq_response_to_http_response
( mut response: http::Response<ureq::Body>, url: &str, )
http-cache-ureq/src/lib.rs:653
↓ 1 callers
Function
create_mock_server
(payload_size: usize)
http-cache-reqwest/examples/reqwest_streaming_memory_profile.rs:63
↓ 1 callers
Method
delete
(&self, cache_key: &str)
http-cache-tower-server/tests/integration.rs:50
↓ 1 callers
Method
delete
(&self, cache_key: &str)
http-cache-quickcache/src/lib.rs:231
↓ 1 callers
Function
determine_scheme
Determine the appropriate scheme for URL construction
http-cache/src/lib.rs:588
↓ 1 callers
Method
empty_body
(&self)
http-cache/src/managers/streaming_cache.rs:1093
↓ 1 callers
Method
entry_count
(&self)
http-cache/src/managers/streaming_cache.rs:538
↓ 1 callers
Function
execute_json_request
Universal function for JSON requests - eliminates method-specific duplication
http-cache-ureq/src/lib.rs:631
↓ 1 callers
Function
extract_vary_headers
Extract Vary headers from response parts.
http-cache-tower-server/src/lib.rs:805
↓ 1 callers
Method
force_no_cache
(&mut self)
http-cache-surf/src/lib.rs:230
↓ 1 callers
Function
http_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 callers
Method
into_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 callers
Method
into_json
( self, )
http-cache-ureq/src/lib.rs:748
↓ 1 callers
Function
is_cacheable_method
(method: &str)
http-cache-ureq/src/lib.rs:598
↓ 1 callers
Method
is_stale
Check if this cached response is stale.
http-cache-tower-server/src/lib.rs:396
↓ 1 callers
Method
kind
Get the error kind
http-cache/src/error.rs:367
↓ 1 callers
Method
metrics
Get a reference to the cache metrics.
http-cache-tower-server/src/lib.rs:528
↓ 1 callers
Function
parse_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 callers
Function
parse_max_age
Parse max-age from Cache-Control header.
http-cache-tower-server/src/lib.rs:942
↓ 1 callers
Function
parse_s_maxage
Parse s-maxage from Cache-Control header (shared cache specific).
http-cache-tower-server/src/lib.rs:953
↓ 1 callers
Method
prepare_conditional_request
( &self, parts: &mut request::Parts, _cached_response: &Response<Self::Body>,
http-cache/src/lib.rs:3308
↓ 1 callers
Method
put
( &self, cache_key: String, res: HttpResponse, policy: CachePolicy, )
http-cache-tower-server/tests/integration.rs:40
↓ 1 callers
Method
put
( &self, cache_key: String, response: HttpResponse, policy: CachePolicy, )
http-cache-quickcache/src/lib.rs:219
↓ 1 callers
Method
redb_get
Read a metadata row from redb by key.
http-cache/src/managers/streaming_cache.rs:646
↓ 1 callers
Function
response_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 callers
Function
response_remove_warning
Removes the warning header from an `http::Response`.
http-cache/src/lib.rs:2017
↓ 1 callers
Function
response_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 callers
Function
run_memory_analysis
()
http-cache-reqwest/examples/reqwest_streaming_memory_profile.rs:184
↓ 1 callers
Method
send_json
( self, data: serde_json::Value, )
http-cache-ureq/src/lib.rs:454
↓ 1 callers
Function
should_cache
( req_parts: &http::request::Parts, res_parts: &http::response::Parts, options: &ServerCacheOption
http-cache-tower-server/src/lib.rs:834
↓ 1 callers
Function
sweep_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 callers
Function
url_set_path
(url: &mut Url, path: &str)
http-cache/src/lib.rs:380
↓ 1 callers
Function
url_set_query
(url: &mut Url, query: Option<&str>)
http-cache/src/lib.rs:397
↓ 1 callers
Function
version_from_u8
Convert u8 back to HTTP version.
http-cache/src/managers/streaming_cache.rs:143
↓ 1 callers
Function
version_to_u8
Convert HTTP version to u8 for compact storage.
http-cache/src/managers/streaming_cache.rs:131
Method
agent_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
Method
alloc
(&self, layout: Layout)
http-cache-tower/examples/tower_streaming_memory_profile.rs:43
Method
alloc
(&self, layout: Layout)
http-cache-reqwest/examples/reqwest_streaming_memory_profile.rs:46
Function
bad_header
(e: reqwest::header::InvalidHeaderValue)
http-cache-reqwest/src/lib.rs:548
Function
bench_cache_hit_comparison
Benchmark cache hit performance - buffered vs streaming
http-cache-tower/benches/streaming_benchmark.rs:156
Function
bench_cache_miss_comparison
Benchmark cache miss performance - buffered vs streaming
http-cache-tower/benches/streaming_benchmark.rs:58
Function
bench_streaming_throughput
Benchmark streaming cache throughput with concurrent requests
http-cache-tower/benches/streaming_benchmark.rs:268
Method
body_to_bytes_stream
( body: Self::Body, )
http-cache/src/managers/streaming_cache.rs:1097
Function
body_types
()
http-cache-tower/src/test.rs:350
Method
buffered
(data: Bytes)
http-cache/src/body.rs:118
Method
build_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
Method
builder
Create a new builder
http-cache-ureq/src/lib.rs:366
Function
cacache
()
http-cache/src/test.rs:173
Function
cacache_bincode_entry_read_without_compat_feature
()
http-cache/src/test.rs:383
Function
cacache_bincode_migration_preserves_headers
()
http-cache/src/test.rs:324
Function
cacache_bincode_to_postcard_migration
()
http-cache/src/test.rs:269
Function
cacache_corrupt_data_returns_none
()
http-cache/src/test.rs:213
Method
cache
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
Function
cache_bust
()
http-cache-reqwest/src/test.rs:372
Function
cache_bust
()
http-cache-ureq/src/test.rs:313
Function
cache_busting
()
http-cache-tower/src/test.rs:387
Method
cache_dir
(&self)
http-cache/src/managers/streaming_cache.rs:527
Function
cache_hit_bypasses_rate_limiting
()
http-cache-surf/src/test.rs:1110
Function
cache_hit_bypasses_rate_limiting
()
http-cache-ureq/src/test.rs:1170
Function
cache_miss_applies_rate_limiting
()
http-cache-surf/src/test.rs:1146
Function
cache_miss_applies_rate_limiting
()
http-cache-ureq/src/test.rs:1205
Function
cache_mode
()
http-cache/src/test.rs:25
Method
call
(&mut self, req: Request<ReqBody>)
http-cache-tower/src/lib.rs:762
Method
call
(&mut self, _req: Request<Full<Bytes>>)
http-cache-tower/examples/tower_streaming_memory_profile.rs:86
Function
can_convert_versions_from_http
()
http-cache/src/test.rs:102
← previous
next →
101–200 of 612, ranked by callers