ssseasonnn / RxDownload

A multi-threaded download tool written with RxJava and Kotlin
Apache License 2.0
4.14k stars 612 forks source link

how to change request in rxdownload #356

Open eldorado opened 1 year ago

eldorado commented 1 year ago

hi friends. i want to handle timeout (connection timeout and read timeout) in RxDownload. how should i do this? there is only a timeout which does not specify what kind of timeout it is (no connection timeout or read timeout or write timeout) if i must change the okhttpClient , how should i do this in kotlin?

ssseasonnn commented 1 year ago

you can custom your own requestimpl to handle it:

image
eldorado commented 1 year ago

thanks. but i don't know how should i do this? how create a RequestImpl? and how set okhttpClient in this request?