lib: directly pass in the arguments
This removes some arguments
usage and instead passes in the arguments directly.
It also improves the performance by using util._extends
instead of Object.assign
and by adding fast paths.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines
Affected core subsystem(s)
child_process, http