web_get_async

Function web_get_async 

Source
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 request
  • proxy_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 headers
  • Err(HttpError) - Error details if the request failed