WXL
4 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
1
2
3
4
5
6
7
/**
 * @param {boolean} isHTTPS true when need https module, otherwise false
 * @returns {Promise<import("http") | import("https")>}
 */
module.exports = function (isHTTPS) {
    return isHTTPS ? import("https") : import("http");
};