1
0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2024-11-22 08:07:30 +00:00

Rename folder to request_backends

This commit is contained in:
Cadence Ember 2020-06-21 18:06:30 +12:00
parent ee2626924a
commit 6fd9907b60
No known key found for this signature in database
GPG Key ID: 128B99B1B74A6412
5 changed files with 5 additions and 5 deletions

View File

@ -1,5 +1,5 @@
const NodeFetch = require("./requestbackends/node-fetch")
const Got = require("./requestbackends/got")
const NodeFetch = require("./request_backends/node-fetch")
const Got = require("./request_backends/got")
const constants = require("../constants")
@ -11,7 +11,7 @@ const backendStatusLineMap = new Map([
])
/**
* @returns {import("./requestbackends/reference")}
* @returns {import("./request_backends/reference")}
*/
function request(url, options = {}, settings = {}) {
if (settings.statusLine === undefined) settings.statusLine = "OUT"

View File

@ -21,8 +21,8 @@ class TorSwitcher {
* If the test function fails, its error will be rejected here.
* Only include rate limit logic in the test function!
* @param {string} url
* @param {(res: import("./requestbackends/reference").GrabResponse) => any} test
* @returns {Promise<import("./requestbackends/reference")>}
* @param {(res: import("./request_backends/reference").GrabResponse) => any} test
* @returns {Promise<import("./request_backends/reference")>}
*/
request(type, url, test) {
if (this.torManager && constants.tor.for[type]) {