Basically, my question is why isn't there a setRequestLine method for the HttpRquest interface? The HttpMessage interface has all kinds of set methods for headers and such, why not a set method for RequestLine in HttpRequest?
Thanks... Bill- On Fri, Dec 2, 2011 at 4:12 PM, William Speirs <[email protected]> wrote: > What is the easiest way to modify the URI of an HttpRequest? > > I'm about to write code like this: > HttpRequest newReq = new BasicHttpRequest(// fill in with method, new uri, > and protocol version); > // copy all headers > // copy entity body > > This seems like a lot of work when I all I really want is a .setUri() > method. > > Ideas? > > Bill- >
