]> git.ipfire.org Git - thirdparty/squid.git/commit - src/Makefile.am
Changes to HTTP request and reply parsing classes, started by Alex,
authorwessels <>
Tue, 13 Sep 2005 05:28:57 +0000 (05:28 +0000)
committerwessels <>
Tue, 13 Sep 2005 05:28:57 +0000 (05:28 +0000)
commit8596962e4e813f7972c342e75a5396f0b65fe92e
tree5dfd4df3d32e620fba428a86baa6cf5ece7c7e7e
parent8ae66e43fd96dca849396744cf4a53f608e45ba4
Changes to HTTP request and reply parsing classes, started by Alex,
further hacked by DW.  These are forward-ported from ICAP development
on sourceforge.

Alex's original commit message:

- Moved parts common to HttpReply and HttpRequest to HttpMsg. HttpMsg is
  needed to be able to pipe HTTP messages using MsgPipe without knowing
  whether the message being piped is a request or response. It is also
  handy for keeping ICAPXaction mostly independent from the ICAP request
  method (and, hence, the primary HTTP message kind). Moving previously
  duplicated code to a single location is supposed to be good long-term.
  More polishing work is needed (e.g., protocol and protoPrefix need
  to be merged and so can be lastmod and last_modified).

- Added reset/parse/pack methods to parse and pack HTTP messages without
  knowing their direction/kind. HttpRequest::parse() is not implemented
  yet but we have code that should be reusable for that.

DW's additional changes

- HttpRequest didn't really have any parsing methods or state.
  Moved the HttpReply parsing methods to HttpMsg and created a
  virtual function for parsing the start line (request line or
  status line).

- Added full_uri flag to packInto() method because ICAP needs
  full URIs in encapsulated requests.
src/HttpMsg.cc
src/HttpReply.cc
src/HttpReply.h
src/HttpRequest.cc
src/HttpRequest.h
src/HttpStatusLine.cc
src/HttpStatusLine.h
src/Makefile.am
src/Makefile.in
src/client_side.h
src/protos.h