http-client-common icon indicating copy to clipboard operation
http-client-common copied to clipboard

Feature request: okhttp-based jvm implementation

Open thevery opened this issue 7 years ago • 4 comments

Implementation itself is pretty trivial, but the most important part is option to pass actual httpclient instance.

thevery avatar Jul 24 '18 14:07 thevery

Hi, @thevery. Just for my interest :), what kind of stuff you missed in the ktor client to use it on android?

e5l avatar Jul 25 '18 06:07 e5l

We use okhttp for interceptors (user-agent and logs), timeouts, retrofit, stetho and even custom dns resolving. But the main reason for okhttp is easy migration from exisrit kotlin android code to common code. Another thing I miss in common http client is blocking calls, but this is a subject of another feature request.

thevery avatar Jul 25 '18 07:07 thevery

What you mean by blocking?

e5l avatar Jul 25 '18 07:07 e5l

#11

thevery avatar Jul 25 '18 07:07 thevery