1.1 --- a/WebStack/BaseHTTPRequestHandler.py Fri Jun 20 22:21:30 2008 +0200
1.2 +++ b/WebStack/BaseHTTPRequestHandler.py Sun Feb 15 16:05:35 2004 +0000
1.3 @@ -70,12 +70,21 @@
1.4 def get_headers(self):
1.5
1.6 """
1.7 - A framework-specific method which returns the request headers.
1.8 - NOTE: Experimental, since framework support varies somewhat.
1.9 + A framework-specific method which returns all request headers.
1.10 """
1.11
1.12 return self.trans.headers
1.13
1.14 + def get_header_values(self, key):
1.15 +
1.16 + """
1.17 + A framework-specific method which returns a list of all request header
1.18 + values associated with the given 'key'. Note that according to RFC 2616,
1.19 + 'key' is treated as a case-insensitive string.
1.20 + """
1.21 +
1.22 + return self.convert_to_list(self.trans.headers.get(key))
1.23 +
1.24 def get_content_type(self):
1.25
1.26 """