mirror of
https://git.proxmox.com/git/proxmox
synced 2025-08-07 07:38:59 +00:00
proxmox-http: drop 'mut' on specialized request methods
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
86f3c90763
commit
70142e607d
@ -99,7 +99,7 @@ impl SimpleHttp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn post(
|
pub async fn post(
|
||||||
&mut self,
|
&self,
|
||||||
uri: &str,
|
uri: &str,
|
||||||
body: Option<String>,
|
body: Option<String>,
|
||||||
content_type: Option<&str>,
|
content_type: Option<&str>,
|
||||||
@ -121,7 +121,7 @@ impl SimpleHttp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub async fn get_string(
|
pub async fn get_string(
|
||||||
&mut self,
|
&self,
|
||||||
uri: &str,
|
uri: &str,
|
||||||
extra_headers: Option<&HashMap<String, String>>,
|
extra_headers: Option<&HashMap<String, String>>,
|
||||||
) -> Result<String, Error> {
|
) -> Result<String, Error> {
|
||||||
|
Loading…
Reference in New Issue
Block a user