class documentation

A user-created :class:`Request <Request>` object. Used to prepare a :class:`PreparedRequest <PreparedRequest>`, which is sent to the server. :param method: HTTP method to use. :param url: URL to send. :param headers: dictionary of headers to send. :param files: dictionary of {filename: fileobject} files to multipart upload. :param data: the body to attach to the request. If a dictionary or list of tuples ``[(key, value)]`` is provided, form-encoding will take place. :param json: json for the body to attach to the request (if files or data is not specified). :param params: URL parameters to append to the URL. If a dictionary or list of tuples ``[(key, value)]`` is provided, form-encoding will take place. :param auth: Auth handler or (user, pass) tuple. :param cookies: dictionary or CookieJar of cookies to attach to this request. :param hooks: dictionary of callback hooks, for internal usage. Usage:: >>> import requests >>> req = requests.Request('GET', 'https://httpbin.org/get') >>> req.prepare() <PreparedRequest [GET]>

Method __init__ Undocumented
Method __repr__ Undocumented
Method prepare Constructs a :class:`PreparedRequest <PreparedRequest>` for transmission and returns it.
Instance Variable auth Undocumented
Instance Variable cookies Undocumented
Instance Variable data Undocumented
Instance Variable files Undocumented
Instance Variable headers Undocumented
Instance Variable hooks Undocumented
Instance Variable json Undocumented
Instance Variable method Undocumented
Instance Variable params Undocumented
Instance Variable url Undocumented

Inherited from RequestHooksMixin:

Method deregister_hook Deregister a previously registered hook. Returns True if the hook existed, False if not.
Method register_hook Properly register a hook.
def __init__(self, method=None, url=None, headers=None, files=None, data=None, params=None, auth=None, cookies=None, hooks=None, json=None): (source)

Undocumented

def __repr__(self): (source)

Undocumented

def prepare(self): (source)

Constructs a :class:`PreparedRequest <PreparedRequest>` for transmission and returns it.

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented

Undocumented