Skip to main content

build_http_client

Function build_http_client 

Source
pub fn build_http_client(timeout: Duration) -> Result<HttpClient, String>
Expand description

A client with the given total timeout, for content anyone can name.

Every fetch goes through the transport’s decision for its own host: direct only while the account is on Clearnet, through the bridge on an anonymity network, and refused in process while that network is not up. Clippy forbids building a reqwest client anywhere else.