Hi, Alin thanks for pointing out this bug, I have fixed it now.
Lilu On Fri, May 27, 2011 at 3:36 PM, alin vasile <alinachegal...@yahoo.com>wrote: > Not sure if it is too early for this kind of comments: > the by(FluentHttpMethod) method in FluentRequest doesn't update the > FluentHttpMethod attribute, so when you call it with a method different than > GET, a subsequent invocation of methodName() will always return 'GET'. > > This displays 'GET': > > FluentRequest request = request("http://www.apache.org/").by(GET_METHOD); > System.out.println(request.methodName()); > > This still displays 'GET': > > request = request("http://www.apache.org/").by(PUT_METHOD); > System.out.println(request.methodName()); > > > ________________________________ > From: Lilu Xu <cooki...@gmail.com> > To: HttpComponents Project <dev@hc.apache.org> > Sent: Friday, May 27, 2011 2:49 PM > Subject: First few classes > > Hi all, > > the project of a façade API of HttpClient with fluent style now is hosted > on the Google Code [1]. Some few classes have been implemented. Source code > and javadoc should be found on the project website. I also wrote a Wiki page > of those classes [2]. Hopefully you could drop me some comments. > > Best, > Lilu > > [1] http://code.google.com/p/fluent-hc/ > [2] http://code.google.com/p/fluent-hc/wiki/RequestExecution > -- Best regards, Lilu