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

Function patch

src/requests/api.py:154–168  ·  view source on GitHub ↗

r"""Sends a PATCH request. :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 json: (optional) A JSON serializable Python object to send in the bo

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

Source from the content-addressed store, hash-verified

152
153
154def patch(
155 url: _t.UriType, data: _t.DataType = None, **kwargs: Unpack[_t.DataKwargs]
156) -> Response:
157 r"""Sends a PATCH request.
158
159 :param url: URL for the new :class:`Request` object.
160 :param data: (optional) Dictionary, list of tuples, bytes, or file-like
161 object to send in the body of the :class:`Request`.
162 :param json: (optional) A JSON serializable Python object to send in the body of the :class:`Request`.
163 :param \*\*kwargs: Optional arguments that ``request`` takes.
164 :return: :class:`Response <Response>` object
165 :rtype: requests.Response
166 """
167
168 return request("patch", url, data=data, **kwargs)
169
170
171def delete(url: _t.UriType, **kwargs: Unpack[_t.RequestKwargs]) -> Response:

Callers

nothing calls this directly

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected