# requests 2.34.2 (Apache-2.0), harvested by tools/harvest_corpus.py
=== input
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]>
    
=== parse rest
short_description: 'A user-created :class:`Request <Request>` object.'
long_description: |
  Used to prepare a :class:`PreparedRequest <PreparedRequest>`, which is sent to the server.
  
  Usage::
  
    >>> import requests
    >>> req = requests.Request('GET', 'https://httpbin.org/get')
    >>> req.prepare()
    <PreparedRequest [GET]>
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: 'HTTP method to use.'
  kind: param
  key: 'param'
  arg_name: 'method'
  is_optional: False
- DocstringParam
  description: 'URL to send.'
  kind: param
  key: 'param'
  arg_name: 'url'
  is_optional: False
- DocstringParam
  description: 'dictionary of headers to send.'
  kind: param
  key: 'param'
  arg_name: 'headers'
  is_optional: False
- DocstringParam
  description: 'dictionary of {filename: fileobject} files to multipart upload.'
  kind: param
  key: 'param'
  arg_name: 'files'
  is_optional: False
- DocstringParam
  description: |
    the body to attach to the request. If a dictionary or
    list of tuples ``[(key, value)]`` is provided, form-encoding will
    take place.
  kind: param
  key: 'param'
  arg_name: 'data'
  is_optional: False
- DocstringParam
  description: 'json for the body to attach to the request (if files or data is not specified).'
  kind: param
  key: 'param'
  arg_name: 'json'
  is_optional: False
- DocstringParam
  description: |
    URL parameters to append to the URL. If a dictionary or
    list of tuples ``[(key, value)]`` is provided, form-encoding will
    take place.
  kind: param
  key: 'param'
  arg_name: 'params'
  is_optional: False
- DocstringParam
  description: 'Auth handler or (user, pass) tuple.'
  kind: param
  key: 'param'
  arg_name: 'auth'
  is_optional: False
- DocstringParam
  description: 'dictionary or CookieJar of cookies to attach to this request.'
  kind: param
  key: 'param'
  arg_name: 'cookies'
  is_optional: False
- DocstringParam
  description: 'dictionary of callback hooks, for internal usage.'
  kind: param
  key: 'param'
  arg_name: 'hooks'
  is_optional: False
=== detect
rest
=== compose rest
A user-created :class:`Request <Request>` object.

Used to prepare a :class:`PreparedRequest <PreparedRequest>`, which is sent to the server.

Usage::

  >>> import requests
  >>> req = requests.Request('GET', 'https://httpbin.org/get')
  >>> req.prepare()
  <PreparedRequest [GET]>

: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.
