Added configurable proxy to HTTP module (also used by qu). Added network and site URL to search documents.

This commit is contained in:
2020-03-19 01:54:25 +01:00
parent e4b269956e
commit 4b310e9dfa
8 changed files with 72 additions and 31 deletions

View File

@@ -287,7 +287,7 @@ function extractAll(htmlValue, selector) {
return initAll(window.document, selector, window);
}
async function get(urlValue, selector, headers, queryAll = false) {
async function get(urlValue, selector, headers, options, queryAll = false) {
const res = await http.get(urlValue, {
headers,
});
@@ -315,8 +315,8 @@ async function get(urlValue, selector, headers, queryAll = false) {
};
}
async function getAll(urlValue, selector, headers) {
return get(urlValue, selector, headers, true);
async function getAll(urlValue, selector, headers, options) {
return get(urlValue, selector, headers, options, true);
}
module.exports = {