MCPcopy
hub / github.com/psf/requests / put

Method put

src/requests/sessions.py:714–726  ·  view source on GitHub ↗

r"""Sends a PUT request. Returns :class:`Response` object. :param url: URL for the new :class:`Request` object. :param data: (optional) Dictionary, list of tuples, bytes, or file-like object to send in the body of the :class:`Request`. :param \*\*kwargs: Optional

(
        self, url: _t.UriType, data: _t.DataType = None, **kwargs: Unpack[_t.DataKwargs]
    )

Source from the content-addressed store, hash-verified

712 return self.request("POST", url, data=data, json=json, **kwargs)
713
714 def put(
715 self, url: _t.UriType, data: _t.DataType = None, **kwargs: Unpack[_t.DataKwargs]
716 ) -> Response:
717 r"""Sends a PUT request. Returns :class:`Response` object.
718
719 :param url: URL for the new :class:`Request` object.
720 :param data: (optional) Dictionary, list of tuples, bytes, or file-like
721 object to send in the body of the :class:`Request`.
722 :param \*\*kwargs: Optional arguments that ``request`` takes.
723 :rtype: requests.Response
724 """
725
726 return self.request("PUT", url, data=data, **kwargs)
727
728 def patch(
729 self, url: _t.UriType, data: _t.DataType = None, **kwargs: Unpack[_t.DataKwargs]

Callers 2

test_HTTP_200_OK_PUTMethod · 0.80

Calls 1

requestMethod · 0.95

Tested by 2

test_HTTP_200_OK_PUTMethod · 0.64