Skip to main content

api_agent

Function api_agent 

Source
pub fn api_agent() -> Agent
Expand description

Agent for API calls with ureq’s default status handling (non-2xx becomes Err(ureq::Error::StatusCode(..))) — drop-in for bare ureq:: calls.