Documentation
Vip 08

VIP-08 --- JavaScript XMLHttpRequest Capability

The key words MUST, MUST NOT, REQUIRED, SHALL, SHALL NOT, SHOULD, SHOULD NOT, RECOMMENDED, MAY, and OPTIONAL in this document are to be interpreted as described in RFC 2119 (opens in a new tab).

draft optional

v-language:javascript

capability:XMLHttpRequest

required-capability:Async


NOTE: this should be considered a LAST RESORT capability to use, the ability to perform arbitrary calls to the outside world is both unwieldy and dangerous. It is recommended to segregate access to specific external services into specific capabilities, and use those narrower interfaces in favor of this blunter instrument.


1. Capability Description

The XMLHttpRequest capability makes the functionality provided by the XMLHttpRequest API (opens in a new tab) available.

The Async capability is REQUIRED for this capability to be available.

2. Available Symbols

The following table details what symbols are made available by this capability:

Symbol Name
FormData
FormData.FormData()
FormData.append()
FormData.delete()
FormData.entries()
FormData.get()
FormData.getAll()
FormData.has()
FormData.keys()
FormData.set()
FormData.values()
ProgressEvent
ProgressEvent.ProgressEvent()
ProgressEvent.lengthComputable
ProgressEvent.loaded
ProgressEvent.total
XMLHttpRequest
XMLHttpRequest.XMLHttpRequest()
XMLHttpRequest.readyState
XMLHttpRequest.response
XMLHttpRequest.responseText
XMLHttpRequest.responseType
XMLHttpRequest.responseURL
XMLHttpRequest.responseXML
XMLHttpRequest.status
XMLHttpRequest.statusText
XMLHttpRequest.timeout
XMLHttpRequest.upload
XMLHttpRequest.withCredentials
XMLHttpRequest.abort()
XMLHttpRequest.getAllResponseHeaders()
XMLHttpRequest.getResponseHeader()
XMLHttpRequest.open()
XMLHttpRequest.overrideMimeType()
XMLHttpRequest.send()
XMLHttpRequest.setRequestHeader()