-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove the public HTTP dependency from aws-sigv4 #2921
Conversation
A new generated diff is ready to view.
A new doc preview is ready to view. |
A new generated diff is ready to view.
A new doc preview is ready to view. |
Removes the public http dependency from the aws-sigv4 crate to avoid compatibility issues with http = 1.0 and to support the http refactor
A new generated diff is ready to view.
A new doc preview is ready to view. |
} | ||
|
||
#[test] | ||
fn test_trim_all_does_nothing_when_there_are_no_spaces(s in "[^ ]*") { | ||
assert_eq!(trim_all(s.as_bytes()).as_ref(), s.as_bytes()); | ||
} | ||
} | ||
|
||
#[test] | ||
fn test_normalize_header_value_returns_expected_error_on_invalid_utf8() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't this test still relevant?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, invalid UTF-8 headers can't make it in as input anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, got it. Makes sense.
Motivation and Context
Removes the public http dependency from the aws-sigv4 crate to avoid compatibility issues with http = 1.0 and to support the http refactor
Description
SignableRequest::new
to remove the direct exposure of HTTP typesTesting
IT/UT
Checklist
TODO: changelog
CHANGELOG.next.toml
if I made changes to the smithy-rs codegen or runtime cratesCHANGELOG.next.toml
if I made changes to the AWS SDK, generated SDK code, or SDK runtime cratesBy submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.