Skip to content

http: Separate constant variable for TypeError & error

Using constants is more a way of defensive programming, also it improves performance optimization. Most importantly, it is for human reader.

Since I have made a nice cleanup to make a separate constant variable for ErrorType and error in lib/_http_client.js.

Checklist
Affected core subsystem(s)

_http_client.js

Merge request reports

Loading