mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
doc: http2.createServer options as optional
The method might be designed to explicitly take `options`. However, the implementation and many examples already allow the first parameter of a function type. PR-URL: https://github.com/nodejs/node/pull/42832 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Robert Nagy <ronagy@icloud.com> Reviewed-By: Paolo Insogna <paolo@cowtech.it> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
1 parent
306a8fbb2d
commit
489e2299ed
1 file changed
+1
-1
+1
-1
@@ -2343,7 +2343,7 @@ Throws `ERR_HTTP2_INVALID_SETTING_VALUE` for invalid `settings` values.
|
||||
|
||||
Throws `ERR_INVALID_ARG_TYPE` for invalid `settings` argument.
|
||||
|
||||
### `http2.createServer(options[, onRequestHandler])`
|
||||
### `http2.createServer([options][, onRequestHandler])`
|
||||
|
||||
<!-- YAML
|
||||
added: v8.4.0
|
||||
|
||||
Reference in new issue
Block a user