diff options
| author | Matthieu Moy <git@matthieu-moy.fr> | 2018-07-13 11:44:25 +0200 |
|---|---|---|
| committer | Matthieu Moy <git@matthieu-moy.fr> | 2018-07-17 18:55:55 +0200 |
| commit | c008bf38836a2b5621ba7b352e9fcecacac4ee93 (patch) | |
| tree | 577d5c09e9a81e162dff7072bf3fb8ccbf3cdf62 /requests/models.py | |
| parent | 2d1b4482c5916433a642d66c6b3d0cd28058b39e (diff) | |
| download | python-requests-c008bf38836a2b5621ba7b352e9fcecacac4ee93.tar.gz | |
Document that 'params' can also be a list of tuples
Like we just did for 'data', 'params' follows the same processing and
can also be a list of tuples.
Diffstat (limited to 'requests/models.py')
| -rw-r--r-- | requests/models.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/requests/models.py b/requests/models.py index af62c401..086e03c1 100644 --- a/requests/models.py +++ b/requests/models.py @@ -208,7 +208,9 @@ class Request(RequestHooksMixin): 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: dictionary of URL parameters to append to the URL. + :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. |
