pub(crate) fn http_multipart_post<T>(
    api_key: &str,
    user_agent: &str,
    url: &str,
    form_data: Form,
) -> VtResult<T>
where
    T: DeserializeOwned,
{
    let client = Client::builder().user_agent(user_agent).build()?;
    let resp = client
        .post(url)
        .header("x-apikey", api_key)
        .multipart(form_data)
        .send()?;
    process_resp(resp)
}
/// POST to a URL with multipart form_data
POST to a URL with multipart form_data
POST to a URL with multipart form_data
pub(crate) fn http_multipart_post<T>(
    api_key: &str,
    user_agent: &str,
    url: &str,
    form_data: Form,
) -> VtResult<T>
where
    T: DeserializeOwned,
{
    let client = Client::builder().user_agent(user_agent).build()?;
    let resp = client
        .post(url)
        .header("x-apikey", api_key)
        .multipart(form_data)
        .send()?;
    process_resp(resp)
}
pub ( crate ) fn http_multipart_post < T > ( api_key : & str , user_agent : & str , url : & str , form_data : Form , ) -> VtResult < T > where T : DeserializeOwned , { let client = Client :: builder ( ) . user_agent ( user_agent ) . build ( ) ? ; let resp = client . post ( url ) . header ( " " , api_key ) . multipart ( form_data ) . send ( ) ? ; process_resp ( resp ) }
POST to a URL with multipart form_data
POST to a URL with multipart form_data
api_key
&str
user_agent
&str
url
&str
form_data
Form