Stas Bekman wrote:

[...]



You set it explicitly, as in your example. Again, you need to use the special methods only for some of the headers. May be that section should explicitly list all those special headers. Patches are welcome.

I forgot that we have a whole chapter on that topic:
http://perl.apache.org/docs/general/correct_headers/correct_headers.html
While it was written for mp1, the concepts apply for mp2 as well (With the tweaks for API changes)



Ok. Working through the docs(converting to mp2-API) the following question came to my mind:


Are there any rules, which (response-)method is in which module?
  - no_cache is found in Apache::RequestUtil
  - update_mtime/set_last_modified are found in Apache::Response
  - content_type is found in Apache::RequestRec
  - headers_out/error_headers_out are found in Apache::RequestRec

Doesn't they all belong to Apache::Response, they all deal with the Response, don't they?

Tom

Reclaim Your Inbox!
http://www.mozilla.org/products/thunderbird

--
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html



Reply via email to