On Fri, 2011-12-02 at 16:30 -0500, William Speirs wrote:
> 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-
> 

Basically there is no good reason.

Oleg


> 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-
> >



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to