pub async fn web_post_async(
url: &str,
data: String,
proxy_config: &ProxyConfig,
headers: Option<&HashMap<CaseInsensitiveString, String>>,
) -> Result<HttpResponse, HttpError>Expand description
Makes an HTTP POST request to the specified URL
§Arguments
url- The URL to requestdata- The request body dataproxy_config- Proxy configurationheaders- Optional custom headers
§Returns
Ok(HttpResponse)- The response with status, body, and headersErr(HttpError)- Error details if the request failed