Module client

Module client 

Source
Expand description

HTTP client with rate limiting for arch-toolkit.

Structs§

ArchClient
What: Main client for arch-toolkit operations.
ArchClientBuilder
What: Builder for creating ArchClient with custom configuration.
CacheInvalidator
What: Builder for cache invalidation operations.
RetryPolicy
What: Configuration for retry policies with exponential backoff and jitter.

Functions§

extract_retry_after
What: Extract Retry-After header value from HTTP response.
increase_archlinux_backoff
What: Increase backoff delay for archlinux.org after a failure or rate limit.
is_archlinux_url
What: Check if a URL belongs to archlinux.org domain.
is_retryable_error
What: Determine if an error is retryable and extract retry-after information.
rate_limit_archlinux
What: Apply rate limiting specifically for archlinux.org requests with exponential backoff.
reset_archlinux_backoff
What: Reset backoff delay for archlinux.org after a successful request.
retry_with_policy
What: Retry an operation with exponential backoff and jitter.