You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a lambda function running behind an API Gateway with a custom authorizer. The authorizer adds information to the RequestContext that is relevant for our lambda function. To facilitate testing this function, it would be great to add a RequestContext with the same ease as adding query string parameters.
I looked at the code for with_query_string_parameters and followed the same approach. I will push a PR with the code in case it is useful for others.
The text was updated successfully, but these errors were encountered:
The trait `RequestExt` already includes functions to add query string
parameters, path parameters and stage variables to a request. This
commit adds another function to allow adding a `RequestContext` to the
request. This is useful in cases where a lambda function is called by
the API Gateway with a custom authorizer that adds parameters to the
`RequestContext`.
Related to #522
Co-authored-by: Simon Gasse <[email protected]>
Comments on closed issues are hard for the maintainers of this repository to see.
If you need more assistance, please open a new issue that references this one.
If you wish to keep having a conversation with other community members under this issue feel free to do so.
We have a lambda function running behind an API Gateway with a custom authorizer. The authorizer adds information to the
RequestContext
that is relevant for our lambda function. To facilitate testing this function, it would be great to add aRequestContext
with the same ease as adding query string parameters.I looked at the code for
with_query_string_parameters
and followed the same approach. I will push a PR with the code in case it is useful for others.The text was updated successfully, but these errors were encountered: