sdk-rust/example-projects/axum-example
Andrew ae83a69f7f
Axum 0.4.0 (#168)
* axum 0.4.0

Signed-off-by: andrew webber (personal) <andrewvwebber@googlemail.com>
2022-01-17 09:23:12 -05:00
..
src Axum 0.4.0 (#168) 2022-01-17 09:23:12 -05:00
Cargo.toml Axum 0.4.0 (#168) 2022-01-17 09:23:12 -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: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