Giter Site home page Giter Site logo

https相关问题 about dio HOT 4 CLOSED

CaiJingLong avatar CaiJingLong commented on July 30, 2024
https相关问题

from dio.

Comments (4)

fly512 avatar fly512 commented on July 30, 2024

好像支持
var dio = new Dio();
dio.onHttpClientCreate

from dio.

CaiJingLong avatar CaiJingLong commented on July 30, 2024

@fly512
这个方法 我当时来看的话 是在内部创建好了以后,你可以获取到httpclient对象,修改参数
而我开始说了httpClient的自签名必须要在构造方法中传参,而dio中httpclient都是new出来的,没有提供自己注入httpclient的方案,所以我才会提这个issue,

from dio.

wendux avatar wendux commented on July 30, 2024

已支持,先升级到>=0.1.2,如文档示例:

 dio.onHttpClientCreate = (HttpClient client) {
    // you can also create a new HttpClient to dio
    // return new HttpClient();  
  };

from dio.

shyandsy avatar shyandsy commented on July 30, 2024

如何在dio 2.x中实现?

from dio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.