Skip to main content

agent

Function agent 

Source
pub fn agent() -> Agent
Expand description

An ureq::Agent that can be used to perform blocking HTTPS requests.

Note that this forbids non-HTTPS requests. If you need to perform plain HTTP requests consider using agent_with_config and pass a suitable config.