def _initialize(self, http, url): """Initialize this download by setting :attr:`http` and :attr`url`. Allow the user to be able to pre-initialize :attr:`http` by setting the value in the constructor; in that case, we ignore the provided http. :type http: :class:`httplib2.Http` (or a worklike) or None. :param http: the Http instance to use to make requests. :type url: string :param url: The url for this transfer. """ self._ensure_uninitialized() if self.http is None: self._http = http or get_http() self._url = url
def _callFUT(self, *args, **kw): from gcloud.streaming.http_wrapper import get_http return get_http(*args, **kw)