Skip to main content

create_http_agent

Function create_http_agent 

Source
pub fn create_http_agent() -> Agent
Expand description

Creates a configured ureq agent for Leo network requests.

Disables http_status_as_error so 4xx/5xx responses return Ok(Response) instead of Err(StatusCode). This preserves response bodies which often contain useful error details from the server.