예제 #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
예제 #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
예제 #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