Skip to content

Commit d8e9c78

Browse files
committed
README
1 parent aa2b54d commit d8e9c78

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,13 @@ The timeout length can be adjusted using the `-t / --timeout` CLI option.
7171
```bash
7272
lambda-gateway -t 3 lambda_function.lambda_handler
7373
```
74+
75+
## API Gateway Payloads
76+
77+
API Gateway supports [two versions](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html) of proxied JSON payloads to Lambda integrations, `1.0` and `2.0`.
78+
79+
Versions `0.8+` of Lambda Gateway use `2.0` by default, but this can be changed at startup time using the `-V / --payload-version` option:
80+
81+
```bash
82+
lambda-gateway -V1.0 lambda_function.lambda_handler
83+
```

0 commit comments

Comments
 (0)