Skip to main content
Module

x/superdeno/src/xhrSham.js>XMLHttpRequestSham

Super-agent driven library for testing Deno HTTP servers.
Go to Latest
class XMLHttpRequestSham
import { XMLHttpRequestSham } from "https://deno.land/x/superdeno@4.8.0/src/xhrSham.js";

A polyfill for XMLHttpRequest.

Indeed, not ideal that we are polyfilling something that we want to disappear with a newer technology. We need to port superagent before can do anything about that though.

Constructors

new
XMLHttpRequestSham()

Methods

open(
method,
url,
async,
username,
password,
)
parseHeaders(headers)
send(body)
setRequestHeader(name, value)
xhrReceive(state)
xhrSend(options, onStateChange)