Example #1
0
    def __init__(self, url, body=b'', headers={}, method='PUT'):
        normalized_headers = {
            str(key): str(value)
            for key, value in six.iteritems(headers)
        }

        URLRequest.__init__(self, str(url), body, normalized_headers)
        self.method = str(method)
Example #2
0
    def __init__(self, url, body=b'', headers={}, method='PUT'):
        normalized_headers = {
            str(key): str(value)
            for key, value in six.iteritems(headers)
        }

        URLRequest.__init__(self, str(url), body, normalized_headers)
        self.method = str(method)
Example #3
0
 def __init__(self, *args, **kwargs):
     return Request.__init__(self, *args, **kwargs)
Example #4
0
 def __init__(self, *args, **kwargs):
     BaseRequest.__init__(self, *args, **kwargs)
     self.method = "GET"
Example #5
0
 def __init__(self, *args, **kwargs):
     Request.__init__(self, *args, **kwargs)
     # we do not parse the response in HEAD, so accepting anything is okay
     self.headers['Accept-encoding'] = '*'
Example #6
0
 def __init__(self, url, body='', headers={}, method='PUT'):
     URLRequest.__init__(self, url, body, headers)
     self.method = method
Example #7
0
 def __init__(self, url, body='', headers={}, method='PUT'):
     URLRequest.__init__(self, url, body, headers)
     self.method = method
Example #8
0
 def __init__(self, method, *args, **kwargs):
     self._method = method
     Request.__init__(self, *args, **kwargs)
Example #9
0
 def __init__(self, *args, **kwargs):
     BaseRequest.__init__(self, *args, **kwargs)
     self.method = "GET"
Example #10
0
 def __init__(self, method, *args, **kwargs):
     self._method = method
     Request.__init__(self, *args, **kwargs)
Example #11
0
 def __init__(self, *args, **kwargs):
     Request.__init__(self, *args, **kwargs)
     # we do not parse the response in HEAD, so accepting anything is okay
     self.headers['Accept-encoding'] = '*'