1.1 --- a/WebStack/BaseHTTPRequestHandler.py Sat Feb 07 23:56:17 2004 +0000
1.2 +++ b/WebStack/BaseHTTPRequestHandler.py Sun Feb 08 16:34:11 2004 +0000
1.3 @@ -150,6 +150,24 @@
1.4
1.5 return self.content
1.6
1.7 + def get_response_code(self):
1.8 +
1.9 + """
1.10 + Get the response code associated with the transaction. If no response
1.11 + code is defined, None is returned.
1.12 + """
1.13 +
1.14 + return self.response_code
1.15 +
1.16 + def set_response_code(self, response_code):
1.17 +
1.18 + """
1.19 + Set the 'response_code' using a numeric constant defined in the HTTP
1.20 + specification.
1.21 + """
1.22 +
1.23 + self.response_code = response_code
1.24 +
1.25 def set_content_type(self, content_type):
1.26
1.27 """