Skip to content
This repository was archived by the owner on May 21, 2025. It is now read-only.

Pass context.Context from Lambda runtime to http.Request. #28

Closed
wants to merge 1 commit into from

Conversation

snabb
Copy link
Contributor

@snabb snabb commented Feb 7, 2019

Fixes #27

Issue #, if available: 27

Description of changes: Pass context.Context from Lambda runtime to http.Request.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@snabb
Copy link
Contributor Author

snabb commented Feb 7, 2019

This could be also fixed in core/request.go ProxyEventToHTTPRequest function. In that case the context would have to be added as an additional argument to that function which would break backward compatibility.

Therefore I chose to implement the context pass-through in every Proxy function instead.

@wolfeidau
Copy link

Was there a problem with this change? Would love to see it reviewed.

@sapessi
Copy link
Collaborator

sapessi commented Oct 5, 2019

This was fixed in #33 by adding the new ProxyWithContext method to avoid breaking changes.

@sapessi sapessi closed this Feb 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Not passing context.Context to http.Request context
3 participants