commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ot...@ivillage.com
Subject RE: HTTPClient - setting default request headers impl Q
Date Fri, 18 Jan 2002 14:01:38 GMT
> Unless I'm missing something, does this not beg the question of having to
> construct an array when setting the header to a single value.

Yes.

> I like that
> method, but would also like:
> 
> setDefaultRequestHeader(String name, String value, boolean append)

Thanks, but I didn't implement neither this nor the method below.  HttpMethodBase class is
already full of methods for setting and getting default and current method request headers
and I'm concerned that it may be too confusing to a user.

Otis


> > -----Original Message-----
> > From: Paul C. Bryan [mailto:email@pbryan.net]
> > Sent: Friday, January 11, 2002 2:06 PM
> > To: Jakarta Commons Developers List
> > Subject: Re: HTTPClient - setting default request headers impl Q
> >
> >
> > I retract the following:
> >
> > > My vote: only *one* method: setDefaultRequestHeader(String name, String
> > > value). In this case, if multiple headers are required, chain them
> > > together in the value parameter with semicolons.
> >
> >
> > Instead, I propose: setDefaultRequestHeader(String name, String[]
> > values). This allows multiple values to be specified, and should greatly
> > simplify implementation.
> >
> > Paul
> >
> >
> > --
> > To unsubscribe, e-mail:
> > <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> > For additional commands, e-mail:
> > <mailto:commons-dev-help@jakarta.apache.org>
> >
> >
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>

_________________________________________________________________
iVillage.com: Solutions for Your Life 
Check out the most exciting women's community on the Web   
http://www.ivillage.com

--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message