MCPcopy Create free account
hub / github.com/d3/d3-request / read

Function read

test/XMLHttpRequest.js:31–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 };
30
31 function read() {
32 that.readyState = 2;
33 fs.readFile(info.url, "binary", function(e, d) {
34 if (e) {
35 that.status = 404; // assumed
36 } else {
37 that.status = 200;
38 that.responseText = d;
39 that.responseXML = {_xml: d};
40 headers["Content-Length"] = d.length;
41 }
42 that.readyState = 4;
43 XMLHttpRequest._last = that;
44 if (that.onreadystatechange) that.onreadystatechange(new XMLHttpRequestProgressEvent(that));
45 });
46 }
47
48 function readSync() {
49 that.readyState = 2;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…