MCPcopy
hub / github.com/arduino/Arduino / put

Function put

arduino-core/src/processing/app/i18n/python/requests/api.py:91–99  ·  view source on GitHub ↗

Sends a PUT request. Returns :class:`Response` object. :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 \*\*kwargs: Optional arguments that ``request`` takes.

(url, data=None, **kwargs)

Source from the content-addressed store, hash-verified

89
90
91def put(url, data=None, **kwargs):
92 """Sends a PUT request. Returns :class:`Response` object.
93
94 :param url: URL for the new :class:`Request` object.
95 :param data: (optional) Dictionary, bytes, or file-like object to send in the body of the :class:`Request`.
96 :param \*\*kwargs: Optional arguments that ``request`` takes.
97 """
98
99 return request('put', url, data=data, **kwargs)
100
101
102def patch(url, data=None, **kwargs):

Callers

nothing calls this directly

Calls 1

requestFunction · 0.85

Tested by

no test coverage detected