Skip to content

Generate the API Gateway Accept header like Java - #1006

Merged
stobrien89 merged 1 commit into
developfrom
python-client-apigateway-accept
Dec 1, 2026
Merged

stobrien89 merged 1 commit into
developfrom
python-client-apigateway-accept

Conversation

@stobrien89

Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

Ports ApiGatewayIntegration from the Java generator to the Python generator.

API Gateway clients (com.amazonaws.apigateway#BackplaneControlService) get an accept_header module with accept_header_plugin, which each client applies. Its interceptor sets Accept: application/json before signing, unless the request already has an Accept header. The generated module matches the Java template.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

API Gateway clients apply a plugin whose interceptor sets Accept: application/json before signing, unless the request has an Accept header. This mirrors ApiGatewayIntegration in the Java generator.
@stobrien89
stobrien89 requested a review from a team as a code owner December 1, 2026 20:46
@stobrien89
stobrien89 merged commit 0ce8c18 into develop Dec 1, 2026
26 checks passed
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.

3 participants