Files
node/lib/internal
James M Snell 2ecdb6d54f 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 16:21:11 -07:00
..
2018-04-16 16:11:21 -07:00
2017-11-16 15:42:46 -08:00
2018-04-16 16:20:31 -07:00
2018-04-16 16:11:21 -07:00
2018-03-30 19:41:41 -05:00
2018-03-30 14:20:40 +02:00
2017-08-14 15:43:10 -04:00
2018-02-16 18:09:56 +01:00
2018-04-16 16:18:14 -07:00

Internal Modules

The modules in lib/internal are intended for internal use in Node.js core only, and are not accessible with require() from user modules. These are subject to change at any time. Reliance on these modules outside of core is not supported in any way.