File tree Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Expand file tree Collapse file tree 3 files changed +63
-0
lines changed Original file line number Diff line number Diff line change
1
+ To run the server:
2
+
3
+ ``` console
4
+ cargo run
5
+ ```
6
+
7
+ To test a GET:
8
+
9
+ ``` console
10
+ curl http://localhost:9000
11
+ ```
12
+
13
+ To test a POST:
14
+
15
+ ``` console
16
+ curl -d '{"hello": "world"}' \
17
+ -H'content-type: application/json' \
18
+ -H'ce-specversion: 1.0' \
19
+ -H'ce-id: 1' \
20
+ -H'ce-source: http://cloudevents.io' \
21
+ -H'ce-type: dev.knative.example' \
22
+ http://localhost:9000
23
+ ```
Original file line number Diff line number Diff line change
1
+ To run the server:
2
+
3
+ ``` console
4
+ cargo run
5
+ ```
6
+
7
+ To test a GET:
8
+
9
+ ``` console
10
+ curl http://localhost:8080
11
+ ```
12
+
13
+ To test a POST:
14
+
15
+ ``` console
16
+ curl -d '{"hello": "world"}' \
17
+ -H'content-type: application/json' \
18
+ -H'ce-specversion: 1.0' \
19
+ -H'ce-id: 1' \
20
+ -H'ce-source: http://cloudevents.io' \
21
+ -H'ce-type: dev.knative.example' \
22
+ http://localhost:8080
23
+ ```
Original file line number Diff line number Diff line change
1
+ To run the server:
2
+
3
+ ``` console
4
+ cargo run
5
+ ```
6
+
7
+ To test a POST:
8
+
9
+ ``` console
10
+ curl -d '{"hello": "world"}' \
11
+ -H'content-type: application/json' \
12
+ -H'ce-specversion: 1.0' \
13
+ -H'ce-id: 1' \
14
+ -H'ce-source: http://cloudevents.io' \
15
+ -H'ce-type: dev.knative.example' \
16
+ http://localhost:3030
17
+ ```
You can’t perform that action at this time.
0 commit comments