Skip to content

Commit

Permalink
doc: indicate that Http2ServerResponse extends Stream
Browse files Browse the repository at this point in the history
Also removes the redundant statement explained by "extends Stream".

PR-URL: #29254
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
  • Loading branch information
trivikr authored and BridgeAR committed Sep 3, 2019
1 parent e939a87 commit b2f169e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions doc/api/http2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2951,12 +2951,11 @@ Url {
added: v8.4.0
-->

* Extends: {Stream}

This object is created internally by an HTTP server — not by the user. It is
passed as the second parameter to the [`'request'`][] event.

The response inherits from [Stream][], and additionally implements the
following:

#### Event: 'close'
<!-- YAML
added: v8.4.0
Expand Down Expand Up @@ -3481,7 +3480,6 @@ following additional properties:
[RFC 8336]: https://tools.ietf.org/html/rfc8336
[RFC 8441]: https://tools.ietf.org/html/rfc8441
[Readable Stream]: stream.html#stream_class_stream_readable
[Stream]: stream.html#stream_stream
[Using `options.selectPadding()`]: #http2_using_options_selectpadding
[`'checkContinue'`]: #http2_event_checkcontinue
[`'connect'`]: #http2_event_connect
Expand Down

0 comments on commit b2f169e

Please sign in to comment.