]> git.proxmox.com Git - proxmox.git/commit
rest-server: Add `Redirector`
authorMax Carrara <m.carrara@proxmox.com>
Tue, 21 Nov 2023 10:08:45 +0000 (11:08 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Mon, 27 Nov 2023 13:28:18 +0000 (14:28 +0100)
commit7d292699864d39c5d034ade5aa55d7267ae43cb9
tree0901895d3282fadcc3dbc8f7b2ca0618e77d2498
parent57b4c4624b6ad2a0f782ca9e547fb85e6c2f9948
rest-server: Add `Redirector`

The `Redirector` is a simple `Service` that redirects HTTP requests
to HTTPS and can be served by a `hyper::Server`.

Signed-off-by: Max Carrara <m.carrara@proxmox.com>
Tested-by: Lukas Wagner <l.wagner@proxmox.com>
Reviewed-by: Lukas Wagner <l.wagner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
proxmox-rest-server/src/lib.rs
proxmox-rest-server/src/rest.rs