You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,6 +66,7 @@ Here's an example object parsed:
66
66
{
67
67
"id":"5d126d86160cea56950f80a9",
68
68
"timestamp":"2019-06-25T18:52:54.000Z",
69
+
"is_http":true,
69
70
"request": {
70
71
"method":"POST",
71
72
"query": {
@@ -132,6 +133,7 @@ A few extra details about the above parsed properties:
132
133
133
134
*`id` (String) - is a newly created BSON ObjectId used to uniquely identify this log
134
135
*`timestamp` (String) - is the [ISO-8601][] date time string parsed from the `id` (thanks to MongoDB BSON `ObjectID.getTimestamp` method)
136
+
*`is_http` (Boolean) - defaults to `true` to indicate that this was a parsed HTTP request
135
137
*`duration` (Number) - is the number of milliseconds that `parseRequest` took to parse the request object (note that this uses `process.hrtime` which this package polyfills thanks to [browser-process-hrtime][])
136
138
*`user` (Object) - is parsed from the user object on `req.user` automatically (e.g. you are using [passport][]):
0 commit comments