pub async fn web_get_async(
url: &str,
proxy_config: &ProxyConfig,
headers: Option<&HashMap<CaseInsensitiveString, String>>,
) -> Result<HttpResponse, HttpError>Expand description
Makes an HTTP request to the specified URL
§Arguments
url- The URL to requestproxy_str- Optional proxy string (e.g., “http://127.0.0.1:8080”)headers- Optional custom headers
§Returns
Ok(HttpResponse)- The response with status, body, and headersErr(HttpError)- Error details if the request failed