Giter VIP home page Giter VIP logo

Comments (7)

liujingxing avatar liujingxing commented on June 12, 2024

自定义OKHttpClient对象,并在RxHttp.init(OkHttpClient)传入

from rxhttp.

xiaoyao521 avatar xiaoyao521 commented on June 12, 2024

好的,谢谢

from rxhttp.

liujingxing avatar liujingxing commented on June 12, 2024

也可以对单个请求设置超时时间,在调用asXXX方法后,通过timeout设置超时时间,但这个超时时间要小于OKHttpClient对象中设置的超时时间

from rxhttp.

xiaoyao521 avatar xiaoyao521 commented on June 12, 2024

如果我不设置okhttpclient的超时时间的话只设置timeout的话也是可以的吧

from rxhttp.

liujingxing avatar liujingxing commented on June 12, 2024

RxHttp内部默认的读、写、连接超时时间都是10s,imeout设置的话,要小于10s,才能保证有效

from rxhttp.

xiaoyao521 avatar xiaoyao521 commented on June 12, 2024

如果我需要更长的超时时间只能通过Okhttpclient了,对吧

from rxhttp.

liujingxing avatar liujingxing commented on June 12, 2024

对的

from rxhttp.

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.