MCPcopy Index your code
hub / github.com/MALSync/MALSync / xhrFunction

Function xhrFunction

test/src/provider/searchClass.test.ts:77–85  ·  view source on GitHub ↗
(post, conf, data)

Source from the content-addressed store, hash-verified

75});
76
77const xhrFunction = async function xhr(post, conf, data) {
78 return fetch(conf).then(async response => {
79 return {
80 finalUrl: response.url,
81 responseText: await response.text(),
82 status: response.status,
83 };
84 });
85};
86
87describe('Mal Search', function() {
88 before(function() {

Callers

nothing calls this directly

Calls 1

fetchFunction · 0.85

Tested by

no test coverage detected