def size(self, host, name):
        response = self._headers(host, name)
        try:
            return int(response['content-length'])
        except (__HOLE__, ValueError):
            raise Exception('Invalid or missing content length for %s: "%s"' % (
                name,
                response.get('content-length'),
            ))
dataset/ETHPy150Open isagalaev/django_dust/django_dust/http.py/HTTPTransport.size