Add RequestOptions for per-request customization with headers and timeouts

- Introduced the `RequestOptions` struct for flexible HTTP request configurations.
- Added `request_with_options` and `post_with_options` methods.
- Deprecated `request` and `post` in favor of the new methods.
- Updated examples and tests to reflect the new API.
This commit is contained in:
geoffsee
2025-08-28 14:46:07 -04:00
parent 3646a37547
commit bd5a84fe95
4 changed files with 303 additions and 10 deletions

2
Cargo.lock generated
View File

@@ -489,7 +489,7 @@ dependencies = [
[[package]]
name = "hyper-custom-cert"
version = "0.3.4"
version = "0.3.5"
dependencies = [
"bytes",
"http-body-util",