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