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

Method request

tools/python-3.11.9-amd64/Lib/xmlrpc/client.py:1162–1173  ·  view source on GitHub ↗
(self, host, handler, request_body, verbose=False)

Source from the content-addressed store, hash-verified

1160 # @return Parsed response.
1161
1162 def request(self, host, handler, request_body, verbose=False):
1163 #retry request once if cached connection has gone cold
1164 for i in (0, 1):
1165 try:
1166 return self.single_request(host, handler, request_body, verbose)
1167 except http.client.RemoteDisconnected:
1168 if i:
1169 raise
1170 except OSError as e:
1171 if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED,
1172 errno.EPIPE):
1173 raise
1174
1175 def single_request(self, host, handler, request_body, verbose=False):
1176 # issue XML-RPC request

Callers 3

__requestMethod · 0.45
do_openMethod · 0.45
_open_generic_httpMethod · 0.45

Calls 1

single_requestMethod · 0.95

Tested by

no test coverage detected