Are you supposed to create different `HttpClient`s for different API or is it recommend to share a single instance across your service? It would be nice to set default headers and stuff but when using multiple APIs that isn’t ideal since you have to check the URL host before doing anything
e
e5l
01/16/2019, 5:40 AM
Hi @ansman, you could use
.config
method to get different pipelines for the single instance of engine.
e5l
01/16/2019, 5:41 AM
You also could create new instance of the client
a
ansman
01/16/2019, 1:17 PM
Right, I’m mostly wondering since you cannot pass for example a preconfigured OkHttp instance which would be nice since OkHttp recommends that you should share instances
e
e5l
01/16/2019, 2:34 PM
It could be a nice feature. You could file an issue or PR 🙂