mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-13 23:17:57 +00:00
a9a35d34c5
reorganizing/splitting protocol handler methods, though not yet adding any new functionality: Allow for multiple instances of nsHTTPResponse to be associated with the same connection, i.e. so that response headers from the cache and response headers from the server can coexist simultaneously. To wit: Moved content-length, charset and content-type information from nsHTTPChannel into nsHTTPResponse Split into separate functions the accumulation of a single line of HTTP header data (from the input stream) and the parsing of that line. This permits cached response headers and server response headers to be parsed from separate data sources, the latter arriving from a nsIBufferInputStream and the former retrieved from the cache as a string. Moved the newly-created header-parsing methods to nsHTTPResponse from nsHTTPResponseListener Fixed some bugs in the interaction between AsyncOpen and AsyncRead. It was possible for an OnHeadersAvailable event to be triggered *after* the associated OnDataAvailable, rather than the other way around. It was also possible, in a rare case, for mOpenObserver->OnStopRequest() to be called without ever having called mOpenObserver->OnStartRequest(). I think my changes made the logic a bit more foolproof. Removed ancient ifdef NSPIPE2 |
||
---|---|---|
.. | ||
macbuild | ||
public | ||
src | ||
.cvsignore | ||
Makefile.in | ||
makefile.win |