Skip to content

Commit fb45f3c

Browse files
authored
Merge pull request #38560 from abrennan89/SRVOCF-360
SRVOCF-360: Updated curl command to kn
2 parents 565f4a8 + 935a2f8 commit fb45f3c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/serverless-nodejs-context-object-reference.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)