MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / agent_with_timeout

Function agent_with_timeout

src/cloud.rs:33–38  ·  view source on GitHub ↗

Creates a ureq agent with the given timeout.

(timeout: Duration)

Source from the content-addressed store, hash-verified

31
32/// Creates a ureq agent with the given timeout.
33pub fn agent_with_timeout(timeout: Duration) -> ureq::Agent {
34 ureq::Agent::config_builder()
35 .timeout_global(Some(timeout))
36 .build()
37 .into()
38}
39
40/// Uploads pending tokens to the worldwide counter.
41/// Returns the new worldwide total on success, or None on any failure.

Callers 7

flush_pendingFunction · 0.85
fetch_worldwide_totalFunction · 0.85
fetch_country_flagsFunction · 0.85
refresh_pricingFunction · 0.85
refresh_pricing_blockingFunction · 0.85

Calls 1

buildMethod · 0.80

Tested by

no test coverage detected