https: make opts optional & immutable when create
opts
in createServer
will be immutable that won't change origional
opts value. What's more, it's optional which can make requestListener
be the first argument.
Refs: https://github.com/nodejs/node/issues/13584
Checklist
-
make -j4 test
(UNIX) -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
https