client_cfg!() { /* proc-macro */ }Expand description
Creates a closure that configures a ReqwestClientBuilder.
This macro generates a closure that can be used to configure a single
reqwest::ClientBuilder instance without affecting global defaults.
§Example
ⓘ
use nym_http_api_client_macro::client_cfg;
let config = client_cfg!(
timeout = std::time::Duration::from_secs(30),
gzip = true
);
let client = config(reqwest::ClientBuilder::new()).build().unwrap();