-
Notifications
You must be signed in to change notification settings - Fork 652
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
aws/protocol/rest: V2 REST Encoder Implementation #449
aws/protocol/rest: V2 REST Encoder Implementation #449
Conversation
ec21ba8
to
5c6cfdd
Compare
5c6cfdd
to
f740d72
Compare
f1cecf2
to
2d68280
Compare
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.
Looks good only one outstanding item on header key casing.
2d68280
to
fedbd67
Compare
fedbd67
to
621b439
Compare
func (e *Encoder) Encode() error { | ||
e.req.URL.Path, e.req.URL.RawPath = string(e.path), string(e.rawPath) | ||
e.req.URL.RawQuery = e.query.Encode() | ||
e.req.Header = e.header | ||
|
||
return nil | ||
} |
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.
How will this return an error, if it occurred during encoding?
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.
Ok to return error in this case since, we may want to add validation in the future
Adds utility for encoding HTTP REST values. Will be used by SDK's generated marshalers.
Adds utility for encoding HTTP REST values. Will be used by SDK's generated marshalers.
Adds utility for encoding HTTP REST values. Will be used by SDK's generated marshalers.
V2 implementation of the HTTP bindings for use in implementing AWSREST and AWSXML protocols.