(self, name, default=None)
Returns the value of the header matching *name*.

        If there are multiple matching headers, the values are
        combined into a single string separated by commas and spaces.

        If no matching header is found, returns *default* or None if
        the *default* is not specified.

        If the headers are unknown, raises http.client.ResponseNotReady.
Returns the value of the header matching *name*.
Returns the value of the header matching * name * .
def getheader(self, name, default=None):
        '''Returns the value of the header matching *name*.

        If there are multiple matching headers, the values are
        combined into a single string separated by commas and spaces.

        If no matching header is found, returns *default* or None if
        the *default* is not specified.

        If the headers are unknown, raises http.client.ResponseNotReady.

        '''
        if self.headers is None:
            raise ResponseNotReady()
        headers = self.headers.get_all(name) or default
        if isinstance(headers, str) or not hasattr(headers, '__iter__'):
            return headers
        else:
            return ', '.join(headers)
def getheader ( self , name , default = None ) : if self . headers is None : raise ResponseNotReady ( ) headers = self . headers . get_all ( name ) or default if isinstance ( headers , str ) or not hasattr ( headers , '__iter__' ) : return headers else : return ', ' . join ( headers )