* Compatiblity with actix-web 4 Fixes #114 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. Macros are featurized now so enabled default features for the doc tests to pass. Signed-off-by: Jim Crossley <jim@crossleys.org> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |
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