awsgi
awsgi copied to clipboard
Add support for retrieving HTTP payload 2.0 method and path info
The new format for HTTP payload (v2.0), nests the fields for the request method and path inside the requestContext.http field causing the lambda instance to fail with KeyErrors when accessing the httpMethod/path fields in event.
Is there anything blocking this merge?
Thanks, working as expected with the direct function URL of the lambda function.
import awsgi
from flask import Flask
app = Flask(__name__)
@app.route("/")
def hello_world():
return "<p>Hello, World!</p>"
def lambda_handler(event, context):
print(event)
return awsgi.response(app, event, context)
can we get this merged?