1.1 --- a/WebStack/BaseHTTPRequestHandler.py Sun Feb 15 16:05:43 2004 +0000
1.2 +++ b/WebStack/BaseHTTPRequestHandler.py Sun Feb 15 16:16:21 2004 +0000
1.3 @@ -187,7 +187,7 @@
1.4
1.5 self.response_code = response_code
1.6
1.7 - def set_header(self, header, value):
1.8 + def set_header_value(self, header, value):
1.9
1.10 """
1.11 Set the HTTP 'header' with the given 'value'.
2.1 --- a/WebStack/Generic.py Sun Feb 15 16:05:43 2004 +0000
2.2 +++ b/WebStack/Generic.py Sun Feb 15 16:16:21 2004 +0000
2.3 @@ -248,13 +248,13 @@
2.4
2.5 raise NotImplementedError, "set_response_code"
2.6
2.7 - def set_header(self, header, value):
2.8 + def set_header_value(self, header, value):
2.9
2.10 """
2.11 Set the HTTP 'header' with the given 'value'.
2.12 """
2.13
2.14 - raise NotImplementedError, "set_header"
2.15 + raise NotImplementedError, "set_header_value"
2.16
2.17 def set_content_type(self, content_type):
2.18
3.1 --- a/WebStack/ModPython.py Sun Feb 15 16:05:43 2004 +0000
3.2 +++ b/WebStack/ModPython.py Sun Feb 15 16:16:21 2004 +0000
3.3 @@ -151,7 +151,7 @@
3.4
3.5 self.response_code = response_code
3.6
3.7 - def set_header(self, header, value):
3.8 + def set_header_value(self, header, value):
3.9
3.10 """
3.11 Set the HTTP 'header' with the given 'value'.
4.1 --- a/WebStack/Twisted.py Sun Feb 15 16:05:43 2004 +0000
4.2 +++ b/WebStack/Twisted.py Sun Feb 15 16:16:21 2004 +0000
4.3 @@ -164,7 +164,7 @@
4.4
4.5 self.trans.setResponseCode(response_code)
4.6
4.7 - def set_header(self, header, value):
4.8 + def set_header_value(self, header, value):
4.9
4.10 """
4.11 Set the HTTP 'header' with the given 'value'.
5.1 --- a/WebStack/Webware.py Sun Feb 15 16:05:43 2004 +0000
5.2 +++ b/WebStack/Webware.py Sun Feb 15 16:16:21 2004 +0000
5.3 @@ -177,7 +177,7 @@
5.4
5.5 self.trans.response().setStatus(response_code)
5.6
5.7 - def set_header(self, header, value):
5.8 + def set_header_value(self, header, value):
5.9
5.10 """
5.11 Set the HTTP 'header' with the given 'value'.
6.1 --- a/examples/Common/Auth/__init__.py Sun Feb 15 16:05:43 2004 +0000
6.2 +++ b/examples/Common/Auth/__init__.py Sun Feb 15 16:16:21 2004 +0000
6.3 @@ -12,7 +12,7 @@
6.4 user = trans.get_user()
6.5 if user is None:
6.6 trans.set_response_code(401)
6.7 - trans.set_header("WWW-Authenticate", 'Basic realm="AuthResource"')
6.8 + trans.set_header_value("WWW-Authenticate", 'Basic realm="AuthResource"')
6.9 return
6.10
6.11 trans.set_content_type(WebStack.Generic.ContentType("text/html"))