The standard node:url module ships with a urlToHttpOptions function that produces ClientRequest options from the given url. We can use that instead of the custom logic we have in normalizing the client request arguments for better stability and performance.
The standard
node:url
module ships with aurlToHttpOptions
function that producesClientRequest
options from the given url. We can use that instead of the custom logic we have in normalizing the client request arguments for better stability and performance.