pub struct Client {
pub cookie_store: Arc<RwLock<CookieStore>>,
pub hint_cache: Arc<RwLock<HashSet<String>>>,
/* private fields */
}Fields§
A synchronized cookie jar shared across all requests.
This store is thread-safe and is automatically updated during redirect chains and standard request execution.
hint_cache: Arc<RwLock<HashSet<String>>>A synchronized cache for Client Hints explicitly solicited by servers.
Implementations§
Source§impl Client
impl Client
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new Client with a Chrome 134 profile auto-matched to the host OS.
The profile is selected at compile time to ensure consistency between
the TLS/H2 persona and the host kernel’s TCP stack.
For custom profiles or proxies, use Client::builder.
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Returns a ClientBuilder to configure a specialized Client instance.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more