commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donnie Hale" <don...@haleonline.net>
Subject RE: HTTPClient - setting default request headers impl Q
Date Sat, 12 Jan 2002 00:58:13 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. I like that
method, but would also like:

setDefaultRequestHeader(String name, String value, boolean append)

FWIW...

Donnie


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


Mime
View raw message