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

Method request

examples/io/tcp/httpclient/httpclient.js:192–204  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

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

Callers 8

constructorMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
fetchClientRequestFunction · 0.45
fetchClientRequestFunction · 0.45
main.jsFile · 0.45
#connectMethod · 0.45
main.jsFile · 0.45

Calls 4

#nextMethod · 0.95
#onWritableMethod · 0.95
setMethod · 0.65
pushMethod · 0.45

Tested by

no test coverage detected