sdk-rust/example-projects/poem-example
Jim Crossley 7f538a3f37 Pin poem version to fix CI
Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-12-15 09:33:57 -05:00
..
src Update poem example 2021-11-12 11:38:02 +08:00
Cargo.toml Pin poem version to fix CI 2021-12-15 09:33:57 -05:00
README.md Add poem-example 2021-11-11 09:34:05 +08:00

README.md

To run the server:

cargo run

To test a GET:

curl http://localhost:8080

To test a POST:

curl -d '{"hello": "world"}' \
  -H'content-type: application/json' \
  -H'ce-specversion: 1.0' \
  -H'ce-id: 1' \
  -H'ce-source: http://cloudevents.io' \
  -H'ce-type: dev.knative.example' \
  http://localhost:8080