Thanks, that's what I was missing; I've been using an older version of WW
and browsed CVS and didn't see anything there. I mean to use this for RSS
generation and the various RSS readers are not necessarily well-written, so
I'd rather support both modified-since and etag. I'll look into hacking
support into the adapter for etag as well.
>From: Ken Lalonde <ken@...>
>Subject: [Webware-discuss] Re: How can I access Request headers
>(implementing 304 responses)?
>Date: Thu, 22 Jan 2004 16:48:40 -0500 (EST)
>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;
>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.
>Webware-discuss mailing list
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.