MCPcopy Index your code
hub / github.com/python/cpython / request

Method request

Lib/xmlrpc/client.py:1136–1147  ·  view source on GitHub ↗
(self, host, handler, request_body, verbose=False)

Source from the content-addressed store, hash-verified

1134 # @return Parsed response.
1135
1136 def request(self, host, handler, request_body, verbose=False):
1137 #retry request once if cached connection has gone cold
1138 for i in (0, 1):
1139 try:
1140 return self.single_request(host, handler, request_body, verbose)
1141 except http.client.RemoteDisconnected:
1142 if i:
1143 raise
1144 except OSError as e:
1145 if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED,
1146 errno.EPIPE):
1147 raise
1148
1149 def single_request(self, host, handler, request_body, verbose=False):
1150 # issue XML-RPC request

Callers 2

__requestMethod · 0.45
do_openMethod · 0.45

Calls 1

single_requestMethod · 0.95

Tested by

no test coverage detected