sdk-rust/example-projects/actix-web-example
Jim Crossley 94f65f656d Compatiblity with actix-web 4.0.0-beta.8
Fixes #114

Signed-off-by: Jim Crossley <jim@crossleys.org>
2021-12-16 13:09:29 -05:00
..
src Compatiblity with actix-web 4.0.0-beta.8 2021-12-16 13:09:29 -05:00
Cargo.toml Compatiblity with actix-web 4.0.0-beta.8 2021-12-16 13:09:29 -05:00
README.md Add some example help 2021-10-20 21:46:44 -04:00

README.md

To run the server:

cargo run

To test a GET:

curl http://localhost:9000

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:9000