MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / #next

Method #next

examples/io/tcp/httpclient/httpclient.js:457–469  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

455 this.#onWritable(this.#writable);
456 }
457 #next() {
458 this.#current = this.#requests.shift();
459 if (!this.#current)
460 return;
461
462 this.#line = undefined;
463 this.#pendingWrite = undefined;
464 this.#state = "sendRequest";
465 this.#headers = (this.#current.headers ?? new Map).entries();
466 this.#remaining = undefined;
467 this.#chunk = undefined;
468 this.#requestBody = false;
469 }
470 #write(data, options) {
471 this.#writable = this.#socket.write(data, options);
472 }

Callers 3

requestMethod · 0.95
#onWritableMethod · 0.95
#doneMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected