Skip to content

Commit

Permalink
deprecate http-02x presign APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
aajtodd committed Sep 9, 2024
1 parent 064fbd7 commit 218e268
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .changelog/1725892046.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
applies_to:
- aws-sdk-rust
authors:
- aajtodd
references: []
breaking: false
new_feature: false
bug_fix: false
---
deprecate http-02x presign APIs in favor of http-1x equivalents
3 changes: 3 additions & 0 deletions aws/rust-runtime/aws-inlineable/src/presigning.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,11 +225,14 @@ impl PresignedRequest {
}

/// Given a body, produce an `http::Request` from this `PresignedRequest`
#[deprecated = "Prefer the `make_http_1x_request()` instead by enabling the `http-1x` feature."]
#[allow(deprecated)]
pub fn make_http_02x_request<B>(&self, body: B) -> http::Request<B> {
self.clone().into_http_02x_request(body)
}

/// Converts this `PresignedRequest` directly into an `http` request.
#[deprecated = "Prefer the `into_http_1x_request` instead by enabling the `http-1x` feature."]
pub fn into_http_02x_request<B>(self, body: B) -> http::Request<B> {
self.http_request
.try_into_http02x()
Expand Down

0 comments on commit 218e268

Please sign in to comment.