Skip to content

lambda_http: Add convenience methods to get references to data in the request #602

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
merged 2 commits into from
Feb 21, 2023
Merged

Conversation

dcormier
Copy link
Contributor

Description of changes:

There are existing methods to get owned clones of various pieces of data in the Request. This adds methods to get references where owned data is not needed.

Also fixed a typo in docs, and some typos in tests.

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.

@dcormier
Copy link
Contributor Author

I'm inclined to have those two methods I commented on return Option rather than panic. Thoughts?

@bnusunny
Copy link
Contributor

Thanks for contributing. I agree returning Option is better.

@dcormier
Copy link
Contributor Author

Done.

@bnusunny
Copy link
Contributor

Could you merge the latest main branch into this PR? It contains fixes for clippy issues and won't break the builds.

There are existing methods to get owned clones of various pieces of data
in the `Request`. This adds methods to get references where owned data
is not needed.
@dcormier
Copy link
Contributor Author

Done.

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