Skip to content

Commit dc23da6

Browse files
committed
Update readme
1 parent 625b3c1 commit dc23da6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ The handler supports events from the following sources:
2929

3030
The default export of `lambda-request-handler` is a function that takes an application handler (i.e. Express.js app instance) as an argument and returns an AWS Lambda handler function.
3131

32+
An additional header is injected into the request
33+
* `x-aws-lambda-request-id` - AWS Lambda Request Id
34+
3235
```sh
3336
$ npm install lambda-request-handler
3437
```
@@ -42,6 +45,7 @@ const app = express()
4245
app.get('/user/:id', (req, res) => {
4346
res.json({
4447
id: req.params.id,
48+
lambdaRequestId: req.header('x-aws-lambda-request-id')
4549
name: 'John'
4650
})
4751
})

0 commit comments

Comments
 (0)