MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / __request

Method __request

tools/python-3.11.9-amd64/Lib/xmlrpc/client.py:1458–1474  ·  view source on GitHub ↗
(self, methodname, params)

Source from the content-addressed store, hash-verified

1456 self.__transport.close()
1457
1458 def __request(self, methodname, params):
1459 # call a method on the remote server
1460
1461 request = dumps(params, methodname, encoding=self.__encoding,
1462 allow_none=self.__allow_none).encode(self.__encoding, 'xmlcharrefreplace')
1463
1464 response = self.__transport.request(
1465 self.__host,
1466 self.__handler,
1467 request,
1468 verbose=self.__verbose
1469 )
1470
1471 if len(response) == 1:
1472 response = response[0]
1473
1474 return response
1475
1476 def __repr__(self):
1477 return (

Callers

nothing calls this directly

Calls 3

dumpsFunction · 0.70
encodeMethod · 0.45
requestMethod · 0.45

Tested by

no test coverage detected