smithy-lang / smithy

Smithy is a protocol-agnostic interface definition language and set of tools for generating clients, servers, and documentation for any programming language.
https://smithy.io
Apache License 2.0
1.7k stars 201 forks source link

Add protocol tests for Content-Type params #2296

Closed djedward closed 4 weeks ago

djedward commented 1 month ago

Background

This change adds tests to document/enforce how the Content-Type headers should be handled by servers. They are important to ensure that clients get the same experience regardless of which language the server is written in.

These are being added as smithy-rs was rejecting requests with parameters added to the Content-Type header, but the customer's existing requests were being accepted by existing servers.

Testing

Links


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