Skip to content

Commit b1bc3fb

Browse files
committed
Merge branch 'main' into sebsto/streaming+http-headers
2 parents 4458b0c + f1514b1 commit b1bc3fb

File tree

2 files changed

+187
-76
lines changed

2 files changed

+187
-76
lines changed

Examples/Streaming/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,20 @@ swift package archive --allow-network-connections docker
7474
If there is no error, there is a ZIP file ready to deploy.
7575
The ZIP file is located at `.build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/StreamingNumbers/StreamingNumbers.zip`
7676

77+
## Test locally
78+
79+
You can test the function locally before deploying:
80+
81+
```bash
82+
swift run
83+
84+
# In another terminal, test with curl:
85+
curl -v \
86+
--header "Content-Type: application/json" \
87+
--data '"this is not used"' \
88+
http://127.0.0.1:7000/invoke
89+
```
90+
7791
## Deploy with the AWS CLI
7892

7993
Here is how to deploy using the `aws` command line.

0 commit comments

Comments
 (0)