Skip to content
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

codegen: Update REST streaming request payload content-type usage #367

Merged
merged 2 commits into from Jun 28, 2022

Conversation

jasdel
Copy link
Contributor

@jasdel jasdel commented Jun 27, 2022

Issue #, if available:
n/a

Description of changes:
Updates the SDK's codegen for REST HTTP request payload to always include content-type header for operations with streaming request payloads. Prior the content-type header would only be added if the streaming request io.Reader was not nil.

Also adds a helper utility for setting if the content-type was automatically assigned by the operation serializer or not. Used by behavior that needs to know if an explicit or default value was provided for the content-type header.

Replaces: #360

Used by: aws/aws-sdk-go-v2#1630

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Updates the SDK's codegen for REST HTTP request payload to always
include content-type header for operations with streaming request
payloads. Prior the content-type header would only be added if the
streaming request io.Reader was not nil.
@jasdel jasdel requested a review from skmcgrail June 27, 2022 17:34
@jasdel jasdel force-pushed the jasdel/UpdateSmithyTests branch 3 times, most recently from 7aad571 to 19f2073 Compare June 27, 2022 18:41
Adds a helper utility for setting if the content-type was automatically
assigned by the operation serializer or not. Used by behavior that needs
to know if an explicit or default value was provided for the
content-type header.
@jasdel jasdel marked this pull request as ready for review June 27, 2022 19:45
@jasdel jasdel merged commit a734372 into main Jun 28, 2022
@jasdel jasdel deleted the jasdel/UpdateSmithyTests branch June 28, 2022 18:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants