-
Notifications
You must be signed in to change notification settings - Fork 218
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
Guidance about Accept
header for servers
#1050
Comments
I put a lot of SHOULDs in there because the existing server-side implementations of restJson1 are more lax about these rules than what I've described. Smithy-Typescript's behavior should be close to this unless I botched the implementation. |
These are the concrete choices I'm making for the implementation of the Rust sSDK. Feel free to close the issue if these choices are good and compliant with the specs.
I don't see any special handling for the
So I'll simply disregard the Similarly with any other protocol that doesn't explicitly specify how to handle the
I don't understand this part. restJson1 spec says |
We're using a 406 response for the TypeScript SSDK, because I think someone sending something like
Yeah I don't like it. I'm going to take this up internally. |
I'm proposing we change the spec for My mental model is this: if I wanted to have a REST API for a content repository that could receive images or videos of many different formats, |
@adamthom-amzn Sounds good. That is in fact the same S3-like use case that a user of our sSDK wants to build: smithy-lang/smithy-rs#1023 (comment) But they're using restXml, which currently also says that |
The protocol test
RestJsonNoInputAllowsAccept
caught my eye.Content-Type
set and theAccept
header is not set to any of these values?Content-Type
norAccept
, but whose body is empty?The text was updated successfully, but these errors were encountered: