sdk-rust/example-projects/actix-web-example
Jim Crossley 7871ea63eb Compatible with actix-web 4.0.0-beta.19
Main challenge here was no longer being able to to construct
web::Payload instances from dev::Payload instances. Instead, we now
invoke the web::Payload FromRequest impl directly.

Also adapted to the latest upstream test and body redesign.

Signed-off-by: Jim Crossley <jim@crossleys.org>
2022-02-11 08:55:26 -05:00
..
src Compatiblity with actix-web 4.0.0-beta.8 2022-02-11 08:55:26 -05:00
Cargo.toml Compatible with actix-web 4.0.0-beta.19 2022-02-11 08:55:26 -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