]> git.proxmox.com Git - proxmox.git/blob - proxmox-http/src/client_trait.rs
http: move SimpleHttpOptions to http-helpers feature
[proxmox.git] / proxmox-http / src / client_trait.rs
1 use anyhow::Error;
2 use http::Response;
3
4 pub trait HttpClient<T> {
5 fn get(&self, uri: &str) -> Result<Response<T>, Error>;
6
7 fn post(
8 &self,
9 uri: &str,
10 body: Option<&str>,
11 content_type: Option<&str>,
12 ) -> Result<Response<T>, Error>;
13 }