Files
node/doc/api
James M Snell 237aa7e9ae http2: refactor how trailers are done
Rather than an option, introduce a method and an event...

```js
server.on('stream', (stream) => {
  stream.respond(undefined, { waitForTrailers: true });
  stream.on('wantTrailers', () => {
    stream.sendTrailers({ abc: 'xyz'});
  });
  stream.end('hello world');
});
```

This is a breaking change in the API such that the prior
`options.getTrailers` is no longer supported at all.
Ordinarily this would be semver-major and require a
deprecation but the http2 stuff is still experimental.

PR-URL: https://github.com/nodejs/node/pull/19959
Reviewed-By: Yuta Hiroto <hello@hiroppy.me>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
2018-04-16 09:53:32 -07:00
..
2018-04-16 03:21:45 +02:00
2018-04-16 14:04:02 +03:00
2018-04-16 14:04:02 +03:00
2018-04-16 14:04:02 +03:00
2018-04-16 19:20:17 +03:00
2018-04-16 09:53:32 -07:00
2016-04-20 16:34:27 -07:00
2018-04-13 20:41:52 +02:00
2018-04-09 17:04:48 +03:00
2018-04-04 13:45:39 +03:00
2018-04-15 02:37:50 +03:00
2018-04-16 16:02:12 +02:00
2018-04-16 10:26:17 +02:00
2018-04-12 23:23:56 +02:00