ByteNote LogoByteNote

Navigation

  • Blog
  • 工具

    © 2025 ByteNote. All rights reserved.

    Unable to add header for post method in dio in Flutter

    Nov 14, 20225 min read

    Dio library key working perfectly fine in my case if we pass small case key value

    For example,

    Dio dio = new Dio();
    dio.options.headers['content-Type'] = 'application/json';
    dio.options.headers["authorization"] = "token ${token}";
    response = await dio.post(url, data: data);  
    

    相关文章

    HTML、SGML和XML有何联系和区别?

    HTML是SGML的子集,用于网页创建,XML基于SGML但更通用和可扩展,三者均使用标记定义元素,但XML更灵活。

    什么是SharedWorker?前端开发中如何运用它优化H5?

    SharedWorker是HTML5的多线程API,用于在多个页面间共享数据和通讯,优化H5性能,实现多任务并发和前端缓存。

    Go 语言内存分配原理

    Go 语言的内存分配由运行时系统负责,采用堆和栈、对象池、标记和清除等策略进行管理。

    如何在csdn或zhihu等网站, 打开外链的时候直接打开, 不经过中转网址

    使用Greasy Fork脚本“Open the F*king URL Right Now”可以在CSDN或知乎等网站上直接打开外链,无需经过中转网址。

    Module not found Error Can’t resolve ‘encoding’ when deploying Next

    要解决部署Next.js应用时遇到的“Module not found Error Can’t resolve ‘encoding’”问题,需在项目目录中运行`yarn add encoding`,清除`.next`目录,重新运行`xdn deploy`,并确保将BigCommerce API密钥添加到`.env.local`中。