]> git.proxmox.com Git - proxmox-backup.git/commit
add tools::http for generic HTTP GET and move HttpsConnector there
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 21 Oct 2020 09:41:11 +0000 (11:41 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 21 Oct 2020 14:22:08 +0000 (16:22 +0200)
commit5eb9dd0c8a5d7c8f76b584ab81e3926bbfd62c38
treedb3438ab150fe9628298954d13e1fb447f199153
parent12bcbf0734e17b7a1004f26b08914602ec57bb27
add tools::http for generic HTTP GET and move HttpsConnector there

...to avoid having the tools:: module depend on api2.

The get_string function is based directly on hyper and thus relatively
simple, not supporting redirects for example.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/client/http_client.rs
src/tools.rs
src/tools/http.rs [new file with mode: 0644]