Skip to content

Commit

Permalink
accept single-shot events in quickstart project (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
daabr authored Sep 17, 2024
1 parent ff9c7a2 commit bbd6eed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions quickstart/program.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@


def on_http_request(event):
if not event:
print("Meow, world!")
return

print(f"Received {event.data.method} request")

iterations = int(event.data.url.query.get("iterations", "0"))
Expand Down

0 comments on commit bbd6eed

Please sign in to comment.