Example #1
0
    def put(self, url, headers, **kwargs):
        data = kwargs.get('data')
        if 'data' in kwargs:
            del kwargs['data']

        response = HTTP.put_with_timeout(url, data, headers=headers, **kwargs)
        return response
Example #2
0
 def put(self, url, headers, **kwargs):
     data = kwargs.get('data')
     if 'data' in kwargs:
         del kwargs['data']
     # This might take a very long time -- disable the normal
     # timeout.
     kwargs['timeout'] = None
     response = HTTP.put_with_timeout(url, data, headers=headers, **kwargs)
     return response
Example #3
0
 def put(self, url, headers, **kwargs):
     data = kwargs.get('data')
     if 'data' in kwargs:
         del kwargs['data']
     # This might take a very long time -- disable the normal
     # timeout.
     kwargs['timeout'] = None
     response = HTTP.put_with_timeout(
         url, data, headers=headers, **kwargs
     )
     return response