On Tue, 2017-04-25 at 01:27 -0700, Gary Gregory wrote: > On Tue, Apr 25, 2017 at 1:00 AM, Oleg Kalnichevski <[email protected]> > wrote: > > > On Mon, 2017-04-24 at 15:07 -0700, Gary Gregory wrote: > > > Hi, > > > > > > I noticed a couple of "CONNECT" strings hard coded here and there > > > and > > > wondered why we do not have an HttpConnect class (with a > > > METHOD_NAME > > > static) like we have HttpGet, and so on. > > > > > > Gary > > > > > > > CONNECT is a special purpose method that is unlikely to be > > applicable > > to common scenarios. It is being used internally by HttpClient to > > establish multi-hop routes via a proxy or a chain of proxies. I see > > no > > good reason to have HttpConnect given it can be easily misused. > > > > OK, how about putting this in a Javadoc for a static definition of > the > "CONNECT" constant? I'm just trying to gather knowledge in > comments... >
I added an enum with standard methods to HttpClient 5.0. It is still in my private branch on GitHub though. Please just bear with me a little longer. I'll commit that code to SVN as soon as HttpCore 5.0a3 goes out. Oleg > Gary > > > > > > Oleg > > > > ----------------------------------------------------------------- > > ---- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
