Beispiel #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)
Beispiel #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)
Beispiel #3
0
 def __init__(self, *args, **kwargs):
     return Request.__init__(self, *args, **kwargs)
Beispiel #4
0
 def __init__(self, *args, **kwargs):
     BaseRequest.__init__(self, *args, **kwargs)
     self.method = "GET"
Beispiel #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'] = '*'
Beispiel #6
0
 def __init__(self, url, body='', headers={}, method='PUT'):
     URLRequest.__init__(self, url, body, headers)
     self.method = method
Beispiel #7
0
 def __init__(self, url, body='', headers={}, method='PUT'):
     URLRequest.__init__(self, url, body, headers)
     self.method = method
Beispiel #8
0
 def __init__(self, method, *args, **kwargs):
     self._method = method
     Request.__init__(self, *args, **kwargs)
Beispiel #9
0
 def __init__(self, *args, **kwargs):
     BaseRequest.__init__(self, *args, **kwargs)
     self.method = "GET"
Beispiel #10
0
 def __init__(self, method, *args, **kwargs):
     self._method = method
     Request.__init__(self, *args, **kwargs)
Beispiel #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'] = '*'