'Yields a dictionary with the HTTP response headers.'

@property
def headers(self, timeout=10):

    if (self.__dict__['_headers'] is None):
        try:
            h = dict(self.open(timeout).info())
        except URLError:
            h = {}
        self.__dict__['_headers'] = h
    return self.__dict__['_headers']
