diff options
author | Peter Marton <peter@risingstack.com> | 2017-10-05 14:24:12 +0200 |
---|---|---|
committer | Anatoli Papirovski <apapirovski@mac.com> | 2018-02-09 12:54:18 -0500 |
commit | e5f101fe7beba032089ae3b3fb425c0ee15df258 (patch) | |
tree | a1302a3a7b1b17146b146ad0fd38b7251768fd2d /doc/api/http2.md | |
parent | dbd1d1d43f30df17a7bb216e0898afb398f6604f (diff) | |
download | android-node-v8-e5f101fe7beba032089ae3b3fb425c0ee15df258.tar.gz android-node-v8-e5f101fe7beba032089ae3b3fb425c0ee15df258.tar.bz2 android-node-v8-e5f101fe7beba032089ae3b3fb425c0ee15df258.zip |
http2: add req and res options to server creation
Add optional Http2ServerRequest and Http2ServerResponse options
to createServer and createSecureServer. Allows custom req & res
classes that extend the default ones to be used without
overriding the prototype.
PR-URL: https://github.com/nodejs/node/pull/15560
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Anatoli Papirovski <apapirovski@mac.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Diffstat (limited to 'doc/api/http2.md')
-rw-r--r-- | doc/api/http2.md | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/api/http2.md b/doc/api/http2.md index 083a491cca..8b428484c0 100644 --- a/doc/api/http2.md +++ b/doc/api/http2.md @@ -1707,6 +1707,14 @@ changes: * `Http1ServerResponse` {http.ServerResponse} Specifies the ServerResponse class to used for HTTP/1 fallback. Useful for extending the original `http.ServerResponse`. **Default:** `http.ServerResponse` + * `Http2ServerRequest` {http2.Http2ServerRequest} Specifies the + Http2ServerRequest class to use. + Useful for extending the original `Http2ServerRequest`. + **Default:** `Http2ServerRequest` + * `Http2ServerResponse` {htt2.Http2ServerResponse} Specifies the + Http2ServerResponse class to use. + Useful for extending the original `Http2ServerResponse`. + **Default:** `Http2ServerResponse` * `onRequestHandler` {Function} See [Compatibility API][] * Returns: {Http2Server} |