01 – Hello HTTP

Demonstrates the minimum PAGI HTTP app: accept only scope->{type} eq 'http', send http.response.start, then a single http.response.body event.

Quick Start

1. Start the server:

pagi-server --app examples/01-hello-http/app.pl --port 5000

2. Demo with curl:

curl http://localhost:5000/
# => Hello from PAGI

Spec References

Covered by the PAGI specification in the upstream PAGI distribution (PAGI::Spec POD and protocol documents, https://github.com/jjn1056/pagi):