示例#1
0
    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
示例#2
0
    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
示例#3
0
 def _callFUT(self, *args, **kw):
     from gcloud.streaming.http_wrapper import get_http
     return get_http(*args, **kw)
示例#4
0
 def _callFUT(self, *args, **kw):
     from gcloud.streaming.http_wrapper import get_http
     return get_http(*args, **kw)