There is no API to get at the HTTP headers in general.
But the If-Modified-Since header is handled as a special case,
to make client-side caching of static objects possible.
You can get it this way:

        ims = self.request().environ().get('If-Modified-Since')

The adaptor sets this up; see Adapters/mod_webkit*/mod_webkit.c.

WebKit/HTTPServlet.py defines a "lastModified()" method that subclasses
may override to define an object's age.
The default age is None (don't know, therefore don't cache).
For static files, it is the file's mod time;
see WebKit/UnknownFileTypeServlet.py.

If you need access to the Etag header or others,
you'd need to hack the adaptors in a similar way.


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Webware-discuss mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to