Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 354 Bytes

File metadata and controls

23 lines (18 loc) · 354 Bytes

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