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.
Methods
abort()
getOrigin(url)
open()
method,
url,
async,
username,
password,
parseHeaders(headers)
resolveUrl(url)
send(body)
setRequestHeader(name, value)
xhrReceive(state)
xhrSend(options, onStateChange)