File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -16,12 +16,12 @@ function handle(context) {
16
16
}
17
17
----
18
18
19
- You can access the function by using the `curl ` command to invoke it:
19
+ You can access the function by using the `kn func emit ` command to invoke it:
20
20
21
21
.Example command
22
22
[source,terminal]
23
23
----
24
- $ curl http://example.com
24
+ $ kn func emit --sink ' http://example.function. com'
25
25
----
26
26
27
27
.Example output
@@ -81,7 +81,7 @@ You can access the function by using the `curl` command to invoke it:
81
81
.Example command
82
82
[source,terminal]
83
83
----
84
- $ curl -X POST -d '{"hello ": "world"}' -H 'Content-type: application/json' http://example.com
84
+ $ kn func emit -d '{"Hello ": "world"}'
85
85
----
86
86
87
87
.Example output
@@ -103,12 +103,12 @@ function handle(context) {
103
103
}
104
104
----
105
105
106
- You can access the function by using the `curl ` command to invoke it:
106
+ You can access the function by using the `kn func emit ` command to invoke it:
107
107
108
108
.Example command
109
109
[source,terminal]
110
110
----
111
- $ curl -H 'x-custom-header: some-value’' http://example.com
111
+ $ kn func emit --sink ' http://example.function. com'
112
112
----
113
113
114
114
.Example output
You can’t perform that action at this time.
0 commit comments