(options)
| 190 | this.#state = "closed"; |
| 191 | } |
| 192 | request(options) { |
| 193 | options = {...options}; |
| 194 | this.#requests.push(options); |
| 195 | if (("connected" === this.#state) && (1 === this.#requests.length)) { |
| 196 | this.#next(); |
| 197 | this.#timer = Timer.set(() => { |
| 198 | this.#timer = undefined; |
| 199 | this.#onWritable(this.#writable); |
| 200 | }); |
| 201 | } |
| 202 | options.request = new HTTPClient.#Request(this); |
| 203 | return options.request; |
| 204 | } |
| 205 | #onReadable(count) { |
| 206 | this.#readable = count; |
| 207 |
no test coverage detected