Apache Mod-Python - Created: (MODPYTHON-226) req.status_line should be writable

This is Interesting: Free IT Magazines  
Home > Archive > Apache Mod-Python > May 2007 > Created: (MODPYTHON-226) req.status_line should be writable





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Created: (MODPYTHON-226) req.status_line should be writable
Graham Dumpleton (JIRA)

2007-05-15, 7:12 am

req.status_line should be writable to allow custom status lines.
----------------------------------------------------------------

Key: MODPYTHON-226
URL: https://issues.apache.org/jira/browse/MODPYTHON-226
Project: mod_python
Issue Type: New Feature
Components: core
Affects Versions: 3.3.1
Reporter: Graham Dumpleton


If req.status_line is writable it allows a handler to return a custom status line description. For example:

req.status_line = "200 ALL OKAY WITH ME"
req.write('hello world!\n')
return apache.OK

The ability to change the description may be useful in testing. See thread:

http://www.modpython.org/pipermail/...May/023567.html

for discussion where lack of this feature arose.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com