PythonMonkey   v0.7.2 (dev)
Loading...
Searching...
No Matches
XMLHttpRequest.js File Reference

Classes

class  ProgressEvent
 
class  XMLHttpRequestEventTarget
 
class  XMLHttpRequestUpload
 
class  XMLHttpRequest
 

Functions

function trunc (what, maxlen, coerce)
 
 if (!globalThis.XMLHttpRequestEventTarget) globalThis.XMLHttpRequestEventTarget
 

Variables

use strict
 
 const { EventTarget, Event } = require('event-target')
 
const debug = globalThis.python.eval('__import__("pythonmonkey").bootstrap.require')('debug')
 
const FORBIDDEN_REQUEST_METHODS
 
exports XMLHttpRequestEventTarget = XMLHttpRequestEventTarget
 
exports XMLHttpRequestUpload = XMLHttpRequestUpload
 
exports XMLHttpRequest = XMLHttpRequest
 
exports ProgressEvent = ProgressEvent
 

Detailed Description

Implement the XMLHttpRequest (XHR) API

Author
Tom Tang xmade.nosp@m.r@di.nosp@m.strib.nosp@m.utiv.nosp@m.e.net.nosp@m.work
Date
August 2023

Function Documentation

◆ if()

if ( !globalThis.  XMLHttpRequestEventTarget)

◆ trunc()

function trunc (   what,
  maxlen,
  coerce 
)

Truncate a string-like thing for display purposes, returning a string.

Parameters
{any}what The thing to truncate; must have a slice method and index property. Works with string, array, typedarray, etc.
{number}maxlen The maximum length for truncation
{boolean}coerce Not false = coerce to printable character codes
Returns
{string}

Variable Documentation

◆ const

const { EventTarget, Event } = require('event-target')

◆ debug

const debug = globalThis.python.eval('__import__("pythonmonkey").bootstrap.require')('debug')

◆ FORBIDDEN_REQUEST_METHODS

const FORBIDDEN_REQUEST_METHODS
Initial value:
= [
'TRACE',
'TRACK',
'CONNECT'
]

◆ ProgressEvent

◆ strict

use strict

◆ XMLHttpRequest

◆ XMLHttpRequestEventTarget

◆ XMLHttpRequestUpload