web_patch_async

Function web_patch_async 

Source
pub async fn web_patch_async(
    url: &str,
    data: String,
    proxy_config: &ProxyConfig,
    headers: Option<&HashMap<CaseInsensitiveString, String>>,
) -> Result<HttpResponse, HttpError>
Expand description

Makes an HTTP PATCH request to the specified URL

§Arguments

  • url - The URL to request
  • data - The request body data
  • proxy_config - Proxy configuration
  • headers - Optional custom headers

§Returns

  • Ok(HttpResponse) - The response with status, body, and headers
  • Err(HttpError) - Error details if the request failed