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) {
1616}
1717----
1818
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:
2020
2121.Example command
2222[source,terminal]
2323----
24- $ curl http://example.com
24+ $ kn func emit --sink ' http://example.function. com'
2525----
2626
2727.Example output
@@ -81,7 +81,7 @@ You can access the function by using the `curl` command to invoke it:
8181.Example command
8282[source,terminal]
8383----
84- $ curl -X POST -d '{"hello ": "world"}' -H 'Content-type: application/json' http://example.com
84+ $ kn func emit -d '{"Hello ": "world"}'
8585----
8686
8787.Example output
@@ -103,12 +103,12 @@ function handle(context) {
103103}
104104----
105105
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:
107107
108108.Example command
109109[source,terminal]
110110----
111- $ curl -H 'x-custom-header: some-value’' http://example.com
111+ $ kn func emit --sink ' http://example.function. com'
112112----
113113
114114.Example output
You can’t perform that action at this time.
0 commit comments