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

aws/protocol/rest: V2 REST Encoder Implementation #449

Merged
merged 1 commit into from
Dec 31, 2019

Conversation

skmcgrail
Copy link
Member

V2 implementation of the HTTP bindings for use in implementing AWSREST and AWSXML protocols.

@skmcgrail skmcgrail requested a review from jasdel December 4, 2019 00:58
private/protocol/rest/v2/encode.go Outdated Show resolved Hide resolved
private/protocol/rest/v2/encode.go Outdated Show resolved Hide resolved
private/protocol/rest/v2/query.go Outdated Show resolved Hide resolved
private/protocol/rest/v2/uri.go Outdated Show resolved Hide resolved
private/protocol/rest/v2/utils_test.go Outdated Show resolved Hide resolved
@skmcgrail skmcgrail requested a review from jasdel December 10, 2019 00:38
@skmcgrail skmcgrail force-pushed the encoderV2/rest branch 2 times, most recently from f1cecf2 to 2d68280 Compare December 10, 2019 01:33
Copy link
Contributor

@jasdel jasdel left a 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.

aws/protocol/rest/header_test.go Show resolved Hide resolved
@skmcgrail skmcgrail requested a review from jasdel December 11, 2019 21:57
Comment on lines +40 to +46
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
}
Copy link
Contributor

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?

Copy link
Contributor

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

@jasdel jasdel changed the base branch from master to feature/GeneratedMarshaling December 31, 2019 19:36
@jasdel jasdel changed the title REST Encoder Implementation V2 aws/protocol/rest: V2 REST Encoder Implementation Dec 31, 2019
@jasdel jasdel merged commit d2262ca into aws:feature/GeneratedMarshaling Dec 31, 2019
skotambkar pushed a commit that referenced this pull request Jan 31, 2020
Adds utility for encoding HTTP REST values. Will be used by SDK's generated marshalers.
jasdel pushed a commit that referenced this pull request Mar 2, 2020
Adds utility for encoding HTTP REST values. Will be used by SDK's generated marshalers.
skmcgrail added a commit that referenced this pull request Apr 14, 2020
Adds utility for encoding HTTP REST values. Will be used by SDK's generated marshalers.
@skmcgrail skmcgrail deleted the encoderV2/rest branch April 16, 2020 17:24
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