Skip to content

impl http multi value query str parameters #59

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

Merged

Conversation

softprops
Copy link
Contributor

Issue #, if available:

Description of changes:

this is a follow on to #58 ( which adds support for (de)serializing multi valued headers. since this is a pull against master it will also contain those changes since this was branched from. That pull should be reviewed first and this second.

There will be one final pull to tie the bow and make the lambda-http crate transparently handle both api gateway and alb events.

By submitting this pull request

  • I confirm that my contribution is made under the terms of the Apache 2.0 license.
  • I confirm that I've made a best effort attempt to update all relevant documentation.

// multi valued query string parameters are always a super
// set of singly valued query string parameters,
// when present, multi-valued query string parameters are preferred
builder.extension(QueryStringParameters(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

abstracting over both cases was a conscious decision. I've found multi valued query string parameter cases awkward to work as two separate collections. the thought process behind making StrMap represent both cases was inspired by HeaderMap which abstracts over single and multi valued headers. The semantics here are documented in the public api for users

@softprops softprops changed the title Lambda http multivalue query str parameters impl http multi value query str parameters Dec 20, 2018
@davidbarsky
Copy link
Contributor

Thanks! Looks solid to me.

@davidbarsky
Copy link
Contributor

(There are merge conflicts. I think I merged out of order. I can fix them tomorrow, or you can. Up to you.)

…nto lambda-http-multivalue-query-str-parameters
@softprops
Copy link
Contributor Author

pushed conflict resolution commit

@davidbarsky davidbarsky merged commit 9966ee3 into awslabs:master Dec 26, 2018
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.

2 participants