Closed
Description
Without using a custom domain mapping in API Gateway, the URI looks like:
https://1234567890.execute-api.us-east-1.amazonaws.com/prod/a/b/c
where prod
is the deployment stage. Currently lambda_http doesn't include the stage in the URL (but it looks like it's available in the event).
I tested it and it works fine with an empty custom domain mapping, but a non-empty custom domain mapping might also not work; I didn't test that, and I'm not sure if the domain mapping is present in the event.
(I'm running into this because I'm writing request validation for a Twilio endpoint, which involves concatenating key/value pairs onto the URL Twilio knows. So I'm relying on Request::uri().to_string()
.)