sdk-rust/example-projects/actix-web-example
Omar Zabala-Ferrera 09661ddaf7
Upgrade dependencies, including http and hyper, where possible. (#233)
* Upgrade axum.
Breaks docs.

Signed-off-by: Omar Zabala-Ferrera <73452461+ozabalaferrera@users.noreply.github.com>

* Upgrade several dependencies.
delegate-attr, base64, snafu, bitflags, hostname, and serde_yaml.

Signed-off-by: Omar Zabala-Ferrera <73452461+ozabalaferrera@users.noreply.github.com>

* Change target wasm32-wasi to wasm32-wasip1.

Signed-off-by: Omar Zabala-Ferrera <73452461+ozabalaferrera@users.noreply.github.com>

---------

Signed-off-by: Omar Zabala-Ferrera <73452461+ozabalaferrera@users.noreply.github.com>
2024-12-02 17:45:10 +01:00
..
src Update to actix-web 4 (#167) 2022-02-28 13:02:00 -05:00
Cargo.toml Upgrade dependencies, including http and hyper, where possible. (#233) 2024-12-02 17:45:10 +01: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