diff --git a/quickstart/autokitteh.yaml b/quickstart/autokitteh.yaml index e2de412e..f0fc76e7 100644 --- a/quickstart/autokitteh.yaml +++ b/quickstart/autokitteh.yaml @@ -9,9 +9,8 @@ project: - name: http_conn integration: http triggers: - - name: http_get + - name: http_request connection: http_conn - event_type: get data: path: trigger_path - call: program.py:on_http_get + call: program.py:on_http_request diff --git a/quickstart/program.py b/quickstart/program.py index ed1dc487..760e5c60 100644 --- a/quickstart/program.py +++ b/quickstart/program.py @@ -1,4 +1,4 @@ -"""Basic handler for incoming HTTP GET requests.""" +"""Basic handler for incoming HTTP requests.""" import time @@ -6,7 +6,7 @@ FIVE_SECONDS = 5 -def on_http_get(event): +def on_http_request(event): print(f"Received {event.data.method} request") iterations = int(event.data.url.query.get("iterations", "0"))