Skip to content

Files

Latest commit

5a9f648 · Feb 28, 2022

History

History
This branch is 45 commits behind cloudevents/sdk-rust:main.

actix-web-example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Feb 28, 2022
Feb 28, 2022
Oct 21, 2021

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