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.