def getheader (self, name, default=None):
        """Get decoded header value.

        @return: decoded header value or default of not found
        @rtype: unicode or type of default
        """
        value = self.headers.get(name)
        if value is None:
            return default
        return unicode_safe(value, encoding=HEADER_ENCODING)
def getheader ( self , name , default = None ) : value = self . headers . get ( name ) if value is None : return default return unicode_safe ( value , encoding = HEADER_ENCODING )
Get decoded header value.

        @return: decoded header value or default of not found
        @rtype: unicode or type of default