GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.pythonmonkey.io — PythonMonkey: XMLHttpRequest Class Reference
Loading...
Searching...
No Matches
XMLHttpRequest Class Reference
Inheritance diagram for XMLHttpRequest:
Collaboration diagram for XMLHttpRequest:
Detailed DescriptionImplement the
Member Function Documentation◆ _requestMetadata()
The unique connection id to identify each XHR connection when debugging Wrapper to print debug logs with connection id information
◆ abort()
Cancels any network activity. ◆ dispatchEvent()
◆ for()
◆ getAllResponseHeaders()
◆ getResponseHeader()
◆ if() [1/2]
◆ if() [2/2]
◆ open()
◆ overrideMimeType()
Acts as if the
◆ readyState()
Returns client's state. ◆ request()
◆ response()
◆ responseText()
Returns response as text. ◆ responseType() [1/2]
◆ responseType() [2/2]
◆ responseURL()
◆ responseXML()
Returns the response as document. ◆ send()
◆ setRequestHeader()
Combines a header in author request headers.
◆ status()
◆ statusText()
◆ upload()
Returns the associated XMLHttpRequestUpload object. ◆ withCredentials() [1/2]
A boolean value that indicates whether or not cross-site ◆ withCredentials() [2/2]
Member Data Documentation◆ DONE [1/2]
@readonly ◆ DONE [2/2]
@readonly ◆ get
Initial value:
{
return this.#receivedBytes.reduce((sum, chunk) => sum + chunk.length, 0)
@type {Method} @type {URL} @type {{ [name: string]: string; }} @type {string | Uint8Array | null} @type {import('./XMLHttpRequest-internal').XHRResponse} @type {Uint8Array[]} @type {ResponseType} cache for converting receivedBytes to the desired response type @type {ArrayBuffer | string | Record<any, any>} Get received bytes’s total length ◆ HEADERS_RECEIVED [1/2]
@readonly ◆ HEADERS_RECEIVED [2/2]
@readonly ◆ LOADING [1/2]
@readonly ◆ LOADING [2/2]
@readonly ◆ merged [1/2]Concatenate received bytes into one single Uint8Array ◆ merged [2/2]
◆ onreadystatechange
@type {EventListenerFn} ◆ OPENED [1/2]
@readonly ◆ OPENED [2/2]
@readonly ◆ processBodyChunk
Initial value:
= ( bytes) =>
{
this.#receivedBytes.push(bytes);
this.#state = XMLHttpRequest.LOADING;
this.dispatchEvent(new ProgressEvent('progress', { loaded:this.#receivedLength, total:responseLength }));
}
Definition event-target.js:18 Definition XMLHttpRequest.js:49 Definition XMLHttpRequest.js:102 this dispatchEvent(new ProgressEvent('loadstart', { loaded:0, total:0 })) ◆ processEndOfBody
Initial value:
= () =>
{
this.#debug('xhr:response')(`end of body, received ${this.#receivedLength} bytes`);
const transmitted = this.#receivedLength;
const length = responseLength || 0;
this.#state = XMLHttpRequest.DONE;
this.#sendFlag = false;
for (const eventType of ['load', 'loadend'])
}
◆ processRequestBodyChunkLength
Initial value:
= ( bytesLength) =>
{
requestBodyTransmitted += bytesLength;
if (this.#uploadListenerFlag)
this.#uploadObject.dispatchEvent(new ProgressEvent('progress', { loaded:requestBodyTransmitted, total:requestBodyLength }));
}
◆ processRequestEndOfBody
Initial value:
= () =>
{
this.#uploadCompleteFlag = true;
if (!this.#uploadListenerFlag)
return;
for (const eventType of ['progress', 'load', 'loadend'])
this.#uploadObject.dispatchEvent(new ProgressEvent(eventType, { loaded:requestBodyTransmitted, total:requestBodyLength }));
}
◆ processResponse
Initial value:
= (response) =>
{
this.#state = XMLHttpRequest.HEADERS_RECEIVED;
return;
responseLength = this.#response.contentLength;
}
◆ requestBodyLength
◆ requestBodyTransmitted
◆ responseLength
◆ timeout
Timeout time in milliseconds. ◆ UNSENT [1/2]
@readonly ◆ UNSENT [2/2]
@readonly The documentation for this class was generated from the following file:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||