31 Jan
2003
31 Jan
'03
4:30 p.m.
--On Freitag, 31. Januar 2003 10:21 -0600 Mark McEahern <mark@mceahern.com> wrote:
[Andreas Jung [mailto:lists@andreas-jung.com]]
get_header() is a method of the REQUEST object and of course not of the RESPONSE object.
So suppose I use response.setHeader() and then, later somewhere else during the processing of the request/response, I want to check whether that header is set. I'm not sure I understand how the REQUEST.get_header() is relevant?
If you really need to look at the headers of the RESPONSE object then sniff into its header attribute. A get_header() method is IMO a clear case of YAGNI. -aj