sdk-rust/example-projects/poem-example
Jim Crossley f3d106b3b1
Account for poem 1.2 breaking changes (#166)
* Account for poem 1.2 breaking changes

* Update the poem example, too

Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-01-06 00:37:49 -05:00
..
src Account for poem 1.2 breaking changes (#166) 2022-01-06 00:37:49 -05:00
Cargo.toml Account for poem 1.2 breaking changes (#166) 2022-01-06 00:37:49 -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