summaryrefslogtreecommitdiff
path: root/requests/api.py
diff options
context:
space:
mode:
authorhootnot <f.brekeveld@gmail.com>2016-11-03 11:10:59 +0100
committerhootnot <f.brekeveld@gmail.com>2016-11-03 11:10:59 +0100
commit623d9e7878895eea4e2f7e263b7fc3f01459a37a (patch)
treeecdedad44017d00da18d6024997e4143f1ddc762 /requests/api.py
parentbf19750c0a27fdc6283fa2a00cb5390a7c2d2d54 (diff)
downloadpython-requests-623d9e7878895eea4e2f7e263b7fc3f01459a37a.tar.gz
documentation line added for consistency with the post method
Diffstat (limited to 'requests/api.py')
-rw-r--r--requests/api.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/requests/api.py b/requests/api.py
index 580b3f35..940c3e61 100644
--- a/requests/api.py
+++ b/requests/api.py
@@ -115,6 +115,7 @@ def put(url, data=None, **kwargs):
:param url: URL for the new :class:`Request` object.
:param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
+ :param json: (optional) json data to send in the body of the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:return: :class:`Response <Response>` object
:rtype: requests.Response
@@ -128,6 +129,7 @@ def patch(url, data=None, **kwargs):
:param url: URL for the new :class:`Request` object.
:param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
+ :param json: (optional) json data to send in the body of the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:return: :class:`Response <Response>` object
:rtype: requests.Response