[Zope] setHeader, but no getHeader

Andreas Jung Andreas Jung <lists@andreas-jung.com>
Fri, 31 Jan 2003 16:30:09 +0100


get_header() is a method of the REQUEST object and of course not of
the RESPONSE object.

-aj

--On Freitag, 31. Januar 2003 09:15 -0600 Mark McEahern <mark@mceahern.com> 
wrote:

> Why does lib/python/ZPublisher/HTTPResponse.py have a setHeader(), but
> not a getHeader()?
>
> Seeing how setHeader() converts the header name to lowercase, it would
> make sense to have a getHeader() that converts the queried key to lower
> before searching self.headers.  [Oops, but then what about the literal
> flag?]
>
> Hmm, maybe HTTPResponse.py is assuming everyone reads the relevant RFCs?
> ;-)
>
> Cheers,
>
> // m
>
> -
>
>
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists -
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )




    ---------------------------------------------------------------------
   -    Andreas Jung                     http://www.andreas-jung.com   -
  -   EMail: andreas at andreas-jung.com                              -
   -            "Life is too short to (re)write parsers"               -
    ---------------------------------------------------------------------