2.0.0 • Published 4 years ago

lws-request-monitor v2.0.0

Weekly downloads
54,021
License
MIT
Repository
github
Last release
4 years ago

view on npm npm module downloads Build Status Dependency Status Coverage Status js-standard-style

lws-request-monitor

Adds request and response logging to lws verbose output.

Example command:

$ lws --stack request-monitor static index --verbose

Example verbose output:

{
  'server.request': {
    requestId: 1,
    method: 'GET',
    url: '/package-lock',
    headers: {
      host: '192.168.0.200:8000',
      'user-agent': 'curl/7.65.0',
      accept: '*/*'
    }
  }
}
{
  'server.response': {
    requestId: 1,
    statusCode: 200,
    headers: [Object: null prototype] {
      'content-length': '27212',
      'last-modified': 'Wed, 05 Jun 2019 11:59:01 GMT',
      'cache-control': 'max-age=0',
      'content-type': 'application/json; charset=utf-8'
    },
    body: [ ReadStream: /Users/lloyd/Documents/lwsjs/examples/static-index/package-lock.json ]
  }
}

© 2017-20 Lloyd Brookes \75pound@gmail.com\.

2.0.0

4 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago