diff options
author | c0b <14798161+c0b@users.noreply.github.com> | 2017-10-21 11:44:45 -0700 |
---|---|---|
committer | Anatoli Papirovski <apapirovski@mac.com> | 2017-10-23 10:22:45 -0400 |
commit | ba4a0a6f5f9f0172e182da4e9000fec8956d0689 (patch) | |
tree | 0d94ed9bbb3c98c1231f78a0c33a89902b634e7c /doc/api/http2.md | |
parent | e79a61cf80335498c3150dafd9036de8ec6b9914 (diff) | |
download | android-node-v8-ba4a0a6f5f9f0172e182da4e9000fec8956d0689.tar.gz android-node-v8-ba4a0a6f5f9f0172e182da4e9000fec8956d0689.tar.bz2 android-node-v8-ba4a0a6f5f9f0172e182da4e9000fec8956d0689.zip |
doc: fix http2 example with rstWithCancel
Replace the non-existent method rstStreamWithCancel with rstWithCancel
PR-URL: https://github.com/nodejs/node/pull/16365
Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r-- | doc/api/http2.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md index c85de0092a..c28517c731 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -817,7 +817,7 @@ const client = http2.connect('http://example.org:8000'); const req = client.request({ ':path': '/' }); // Cancel the stream if there's no activity after 5 seconds -req.setTimeout(5000, () => req.rstStreamWithCancel()); +req.setTimeout(5000, () => req.rstWithCancel()); ``` #### http2stream.state |