On Mon, 2018-07-09 at 18:52 -0600, Gary Gregory wrote: > Here is another one: In version 4, I could conveniently say: > > HttpClientBuilder.create().setSSLContext(createSslContext()).build(); > > But there is no setSSLContext(SSLContext) in version 5, so that's > inconvenient. >
Please use PoolingHttpClientConnectionManagerBuilder to build a connection manager first and then pass it to the HttpClientBuilder HttpClientBuilder got too complex with too many parameters being mutually exclusive, which is a constant source of grievances with HttpClient 4.5. Oleg > Gary > > > On Mon, Jul 9, 2018 at 6:43 PM Gary Gregory <[email protected]> > wrote: > > > HI All: > > > > I have a lot of code like: > > > > final HttpUriRequest request = > > RequestBuilder.post(uri).setEntity(entity).build(); > > > > Which in version 5 gives me a compile error since build > > returns ClassicHttpRequest. > > > > Version 5 has a HttpUriRequest but I cannot find an implementation > > for > > it. > > > > What am I missing? > > > > Thank you, > > Gary > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
