GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • python
  • pythonmonkey
  • builtin_modules
  • XMLHttpRequest.js

This view

  • Original page
  • New address

GeezerVison is showing docs.pythonmonkey.io — PythonMonkey: python/pythonmonkey/builtin_modules/XMLHttpRequest.js File Reference

Logo
PythonMonkey   v1.5.1 (dev)
Loading...
Searching...
No Matches
Classes | Functions | Variables
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
Copyright
Copyright (c) 2023 Distributive Corp.

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

exports ProgressEvent = ProgressEvent

◆ strict

use strict

◆ XMLHttpRequest

exports XMLHttpRequest = XMLHttpRequest

◆ XMLHttpRequestEventTarget

exports XMLHttpRequestEventTarget = XMLHttpRequestEventTarget

◆ XMLHttpRequestUpload

exports XMLHttpRequestUpload = XMLHttpRequestUpload
  • python
  • pythonmonkey
  • builtin_modules
  • XMLHttpRequest.js
  • Generated on Wed Nov 11 2026 19:06:42 for PythonMonkey by doxygen 1.9.7
You are visitor 01402520 — 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.