Skip to content

Commit

Permalink
Merge pull request #20 from ghermeto/master
Browse files Browse the repository at this point in the history
docs(Readme): make clear req.headers is a reference
  • Loading branch information
jsumners authored May 11, 2019
2 parents 4b58493 + 86cf4b5 commit e1841af
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# pino-std-serializers
# pino-std-serializers  [![Build Status](https://travis-ci.org/pinojs/pino-std-serializers.svg)](https://travis-ci.org/pinojs/pino-std-serializers)

This module provides a set of standard object serializers for the
[Pino](https://getpino.io) logger.
Expand Down Expand Up @@ -56,14 +56,15 @@ The default `request` serializer. Returns and object:
// the value filled.
method: 'string',
url: 'string', // the request pathname (as per req.url in core HTTP)
headers: Object,
headers: Object, // a reference to the `headers` object from the request
// (as per req.headers in core HTTP)
remoteAddress: 'string',
remotePort: Number,
raw: Object // Non-enumerable, i.e. will not be in the output, original
// request object. This is available for subsequent serializers
// to use. In cases where the `request` input already has
// a `raw` property this will be `request.raw` instead of the original
// request
// a `raw` property this will replace the original `request.raw`
// property
}
```

Expand Down

0 comments on commit e1841af

Please sign in to comment.