Files
node/doc/api
vmarchaud 0ebf01dc53 perf_hooks: add HttpRequest statistics monitoring #28445
```js
const { PerformanceObserver, performance } = require('perf_hooks');
const http = require('http');

const obs = new PerformanceObserver((items) => {
  const entry = items.getEntries()[0];
  console.log(entry.name, entry.duration);
});
obs.observe({ entryTypes: ['http'] });

const server = http.Server(function(req, res) {
  server.close();
  res.writeHead(200);
  res.end('hello world\n');
});

server.listen(0, function() {
  const req = http.request({
    port: this.address().port,
    path: '/',
    method: 'POST'
  }).end();
});
```

PR-URL: https://github.com/nodejs/node/pull/28486
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
2019-07-12 00:36:27 +02:00
..
2019-07-02 14:06:01 -04:00
2019-07-08 13:34:05 -04:00
2019-06-23 07:10:01 -07:00
2019-07-08 13:34:05 -04:00
2019-06-23 07:09:54 -07:00
2019-07-02 14:06:01 -04:00
2019-06-14 17:19:21 +08:00
2019-07-08 13:34:05 -04:00
2019-03-08 08:19:38 -06:00
2019-06-26 21:47:25 -07:00
2019-06-27 15:55:50 +02:00
2019-07-03 15:53:31 +02:00
2019-07-08 13:34:05 -04:00
2019-07-08 13:34:05 -04:00
2019-06-27 13:52:17 -04:00
2019-05-21 21:23:52 +02:00
2019-06-20 16:16:11 -04:00
2019-07-08 13:42:23 -04:00
2019-06-23 07:07:31 -07:00
2019-06-23 07:07:30 -07:00
2019-06-23 07:07:28 -07:00
2019-07-08 13:42:45 -04:00