[Zope3-dev] Bundled HTTP Views and Code Reuse
Sidnei da Silva
sidnei@x3ng.com
Tue, 25 Mar 2003 18:47:35 -0300
Hi, its me again.
Ive noticed that there are at least 3 or four methods from HTTP and DAV
that 'share' common data. For example, the spec for PROPFIND says that
the response to a request for D:getlastmodified "Contains the
Last-Modified header returned by a GET method without accept headers".
In the same sense, HEAD its basically the same as a GET, but returns an
empty response body.
So, my proposal is to refactor out the HTTP server to make GET, HEAD,
POST into IHTTPPresentation views, allowing one to consistently use the
same method and consequently achieve the same value on all HTTP-based
methods.
What do you guys think?
~dc