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