(host, name)
| 124 | const HTTP_CLIENT_TRACE_EVENT_NAME = 'http.client.request'; |
| 125 | |
| 126 | function validateHost(host, name) { |
| 127 | if (host !== null && host !== undefined && typeof host !== 'string') { |
| 128 | throw new ERR_INVALID_ARG_TYPE(`options.${name}`, |
| 129 | ['string', 'undefined', 'null'], |
| 130 | host); |
| 131 | } |
| 132 | return host; |
| 133 | } |
| 134 | |
| 135 | class HTTPClientAsyncResource { |
| 136 | constructor(type, req) { |
no outgoing calls
no test coverage detected
searching dependent graphs…