Hi all, is the `httpClient` thread-safe? From the ...
# ktor
h
Hi all, is the
httpClient
thread-safe? From the answer in here and here, I inferred that using
httpClient
with the
OkHttp
engine is thread-safe. Still can someone confirm if this is true? Thanks in advance Also is the
httpClient
supposed to be used as a singleton? Is it possible to change to a specific engine so that I can create multiple instance of
httpClient
?
👀 1
a
Hi all, is the
httpClient
thread-safe?
Yes, it is.
Is it possible to change to a specific engine so that I can create multiple instance of
httpClient
?
What do you mean by that?
h
I was under the impression that
httpClient
need to be a singleton, which turns out it’s not