proxmox/proxmox-http/src
Lukas Wagner a7c68a3166 http: sync client: add HTTP request timeout option
This commits adds the possibility to set a HTTP request timeout for the
sync client.

For now, I've opted to add this as a separate option than can be set via
a separate new_with_timeout method as compared to adding it to the HttpOptions
struct. While it of course would make a lot of sense to add it to the
latter, this would require adding support for request timeouts to the
async client as well. Some users of the async client handle request
timeouts externally via tokio::time::timeout, so these would need to
modified as well. I don't want to touch this at the moment,
so I've opted to introduce the timeout to the sync client only for now.
We can always revisit this at a later time and move the option to the
HttpOptions struct.

Signed-off-by: Lukas Wagner <l.wagner@proxmox.com>
2024-11-26 13:57:11 +01:00
..
client http: sync client: add HTTP request timeout option 2024-11-26 13:57:11 +01:00
websocket http: replace deprecated io_err_other 2024-07-30 16:11:44 +02:00
client_trait.rs http: client_trait: make request body generic 2022-09-07 09:25:47 +02:00
http_options.rs http: move SimpleHttpOptions to http-helpers feature 2022-09-07 09:17:45 +02:00
lib.rs tree-wide: enable doc_cfg and doc_auto_cfg for docs 2024-07-02 11:59:53 +02:00
proxy_config.rs http: rename SimpleHttp to Client 2022-09-07 09:17:45 +02:00
rate_limited_stream.rs http: rate limited stream: fix typo in rustdoc comment 2023-11-08 09:56:26 +01:00
rate_limiter.rs http: move rate-limiting out of client feature 2023-03-02 16:14:04 +01:00
uri.rs http: take over json_object_to_query 2022-06-29 10:32:44 +02:00