-
Notifications
You must be signed in to change notification settings - Fork 224
Fix Content-Type and Accept headers for event stream in RPC v2 CBOR
#4427
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
Fix Content-Type and Accept headers for event stream in RPC v2 CBOR
#4427
Conversation
|
A new generated diff is ready to view.
A new doc preview is ready to view. |
landonxjames
left a comment
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.
One comment on some of the tests, not a blocker
...rust/codegen/client/smithy/protocols/eventstream/ClientEventStreamMarshallerGeneratorTest.kt
Outdated
Show resolved
Hide resolved
|
A new generated diff is ready to view.
A new doc preview is ready to view. |
|
We need to consider backwards compatibility here because there are servers that are relying on the old behavior. I fixed servers in the last release, but I'm a little bit worried about any in the wild servers that have not updated their list. Can the client send both accept headers? |
This commit addresses #4427 (comment)
This commit addresses #4427 (comment)
|
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. |
Motivation and Context
#4421
Description
This PR fixes setting the request headers in question for event stream in RPC v2 CBOR according to the spec, specifically
Content-Typeheader MUST beapplication/vnd.amazon.eventstream.Acceptheader MUST beapplication/vnd.amazon.eventstream.Testing
ClientEventStreamMarshallerGeneratorTest.ktto include verification for those headersThe spec regarding response header
For requests with all other response types: the value of the Accept header MUST be application/cborhas already been covered by protocol tests.Checklist
.changelogdirectory, specifying "client," "server," or both in theapplies_tokey..changelogdirectory, specifying "aws-sdk-rust" in theapplies_tokey.By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.