John Napiorkowski
/
PAGI-0.001020
/
examples/01-hello-http/README.md
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
- Core scope & application contract –
docs/specs/main.mkdn
- HTTP response events –
docs/specs/www.mkdn