This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTTPS API | |
import https from "https"; | |
/** | |
* Executes an HTTP request | |
* @param {string | URL} url The url | |
* @returns {Promise<any>} The response | |
*/ | |
export default (url, { method, headers, data } = {}) => new Promise((res, rej) => { |