def __init__(self, method=None, url=None, headers=None, files=None, data=None, params=None, auth=None, cookies=None, hooks=None, json=None):
    data = ([] if (data is None) else data)
    files = ([] if (files is None) else files)
    headers = ({} if (headers is None) else headers)
    params = ({} if (params is None) else params)
    hooks = ({} if (hooks is None) else hooks)
    self.hooks = default_hooks()
    for (k, v) in list(hooks.items()):
        self.register_hook(event=k, hook=v)
    self.method = method
    self.url = url
    self.headers = headers
    self.files = files
    self.data = data
    self.json = json
    self.params = params
    self.auth = auth
    self.cookies = cookies
def __init__(self, method=None, url=None, headers=None, files=None, data=None, params=None, auth=None, cookies=None, hooks=None, json=None):
    data = ([] if (data is None) else data)
    files = ([] if (files is None) else files)
    headers = ({} if (headers is None) else headers)
    params = ({} if (params is None) else params)
    hooks = ({} if (hooks is None) else hooks)
    self.hooks = default_hooks()
    for (k, v) in list(hooks.items()):
        self.register_hook(event=k, hook=v)
    self.method = method
    self.url = url
    self.headers = headers
    self.files = files
    self.data = data
    self.json = json
    self.params = params
    self.auth = auth
    self.cookies = cookies