ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    设置axios不要自动检测命令行代理设置

    Oct 25, 20218 min read
    // 代理设置
    const agent = tunnel.httpsOverHttp({
        proxy: {
            host: '127.0.0.1',
     port: 7890,
     }
    });
    
    axios.request({
        url: 'https://the_api_you_want_access',
     method: 'get',
     httpsAgent: agent,
     proxy: false, // 设置axios不要自动检测命令行代理设置
    });
    

    相关文章

    什么是鲁棒性?

    鲁棒性是指系统、算法或模型在面对外部扰动、异常数据和噪声时保持稳定性和性能的能力,是评估其可靠性和适应性的关键指标。

    sqlite mac 客户端推荐

    AI 无法推荐 Mac 上的 SQLite 客户端,但列出了 10 个知名客户端供用户根据需求选择。

    Linux history -d 的命令使用详解

    `history -d`命令用于从Bash历史记录中删除特定行号的命令,不影响`.bash_history`文件,需手动编辑文件或使用其他工具实现永久删除。

    curl 命令发送一个 HTTP POST 请求

    使用 curl 命令发送包含 JSON 数据的 HTTP POST 请求到指定 URL。

    Flutter 怎么实现类似于 AppleMusic 根据图片生成背景渐变色的效果

    Flutter 中可以使用`color_thief_flutter`库从图片中提取颜色,并应用到`LinearGradient`中以实现类似Apple Music的背景渐变色效果。