hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 11218] - handle multivalue headers correctly
Date Tue, 04 Feb 2003 03:31:57 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11218>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11218

handle multivalue headers correctly





------- Additional Comments From becke@u.washington.edu  2003-02-04 03:31 -------
The above patch is a first attempt at solving this problem.

What's new:
 - HeaderGroup, a new class for storing headers.  This class supports multiple
headers with the same name and it remembers header order.  I'm not a huge fan of
the name, but it was the best I could come up with.
 - HeaderParser, a new class for parsing headers.  Header parsing code was
duplicated in HttpMethodBase and ChunkedInputStream and was placed here.
 - HttpMethod has 3 new methods.  getRequestHeaderGroup(),
getResponseHeaderGroup(), and getResponseFooterGroup().  This will break an
existing extension of HttpMethod.
 - Some of the methods for accessing headers in HttpMethod have been deprecated.
 - Classes in the general codebase that use the newly deprecated methods have
been fixed.  Some of the test cases are still using deprecated methods.
 - SimpleHttpConnection and SimpleHttpMethod have been changed to work correctly
with the new header storage method.

Please take a look and let me know what you think.

Mime
View raw message