#[non_exhaustive]pub struct HttpObjectsConfig {
pub max_walk_objects: usize,
pub admit_reads: bool,
pub redirect_public_refs: bool,
pub read_deadline: Duration,
pub read_reconcile_grace: Duration,
pub reachability_lag_ms: u64,
pub reach_cache_entries: usize,
pub max_inline_object_bytes: u64,
pub http_decode_budget: u64,
pub max_proof_content_bytes: u64,
pub max_proof_bundle_bytes: u64,
}Expand description
Limits of opt-in HTTP object serving.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.max_walk_objects: usizeMost objects one reachability walk decides, and most ref rows scanned
(including excluded refs and shard prefetch). Enumeration also has a
page budget of this limit divided by the configured page size, rounded
up. Exhaustion is 404 and METRIC_HTTP_REACH_CAPPED.
admit_reads: boolRun the Admission hook for GET and HEAD at step 11. Default off.
redirect_public_refs: boolOpt-in public ref redirects after all earlier checks; disabled with admission.
read_deadline: DurationMaximum paid transmission time from reservation creation.
read_reconcile_grace: DurationTime reserved for completion persistence before abandonment (default 60 s).
reachability_lag_ms: u64How long a reachability proof is trusted, in milliseconds: a rewind
or ref deletion is visible within it (§4 reachability_lag).
reach_cache_entries: usizeMost rows of the positive reachability cache.
max_inline_object_bytes: u64Largest object served from its pack entry rather than an extracted
copy, at least extract_min_bytes + 10. Larger is 503.
http_decode_budget: u64Decode bytes one request may spend on resolution and the reachability
walk; at least max_inline_object_bytes. The inline byte source has
its own max_inline_object_bytes allowance on top.
max_proof_content_bytes: u64Maximum requested proof range content (checked before encoded size).
max_proof_bundle_bytes: u64Maximum encoded proof, at most SPEC-DISCLOSURE’s 64 MiB cap.