Skip to content

Adding request context to request? #522

@sgasse

Description

@sgasse

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions