I was wondering, whether is AndroidHttpClient thread safe, as this is not being mentioned in documentation. Means, a single instance of AndroidHttpClient can be shared among multiple threads.
I was wondering, whether is AndroidHttpClient thread safe, as this is not being mentioned
Share
Yes, it is thread safe.
AndroidHttpClientis a special implementation ofDefaultHttpClientwhich is pre-configured for Android. It registers theThreadSafeClientConnManagerwhich allows thread safe HTTP access via a managed connection pool.AndroidHttpClientalso applies reasonable default settings for timeouts and socket buffer sizes. It also supports HTTPS by default.You can find the source code here.