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