Skip to content

Latest commit

 

History

History

axum-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

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