Skip to content

Files

Latest commit

9480a0e · Oct 21, 2021

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: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