On Thu, 2021-07-01 at 10:12 +0000, Gordon Ross wrote:
> Are there any docs on thread safety with HTTP Client?
> 
> Looking at the multithread example at 
> https://github.com/apache/httpcomponents-client/blob/5.1.x/httpclient5/src/test/java/org/apache/hc/client5/http/examples/ClientMultiThreadedExecution.java
> I'm guessing that anything that's a subclass of HttpUriRequestBase
> has to be per-thread but ConnectionManager & HttpClient can be
> shared.
> 
> Looking at the Javadocs I can't see any obvious mention of thread
> safety on any of the classes (or parent classes)
> 
> Thanks,
> 
> Gordon.
> 

Hi Gorgon

@Contract annotation describes the expected thread-safety behavior of
interface implementations or individual classes


http://hc.apache.org/httpcomponents-core-4.4.x/current/httpcore/apidocs/org/apache/http/annotation/Contract.html

Hope this helps

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscr...@hc.apache.org
For additional commands, e-mail: httpclient-users-h...@hc.apache.org

Reply via email to