(opts, handler)
| 8034 | return this[kQueue].length - this[kRunningIdx]; |
| 8035 | } |
| 8036 | get [kConnected]() { |
| 8037 | return !!this[kHTTPContext] && !this[kConnecting] && !this[kHTTPContext].destroyed; |
| 8038 | } |
| 8039 | get [kBusy]() { |
| 8040 | var _a; |
| 8041 | return Boolean( |
| 8042 | ((_a = this[kHTTPContext]) == null ? void 0 : _a.busy(null)) || this[kSize] >= (getPipelining(this) || 1) || this[kPending] > 0 |
| 8043 | ); |
| 8044 | } |
| 8045 | /* istanbul ignore: only used for test */ |
| 8046 | [kConnect](cb) { |
| 8047 | connect(this); |
| 8048 | this.once("connect", cb); |
| 8049 | } |
| 8050 | [kDispatch](opts, handler) { |
| 8051 | const origin = opts.origin || this[kUrl].origin; |
| 8052 | const request = new Request(origin, opts, handler); |
| 8053 | this[kQueue].push(request); |
| 8054 | if (this[kResuming]) { |
nothing calls this directly
no test coverage detected