MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / _request

Method _request

test/functional/interface_http.py:59–64  ·  view source on GitHub ↗
(self, method, path, data, connection_header, **kwargs)

Source from the content-addressed store, hash-verified

57 self.headers.update({key: value})
58
59 def _request(self, method, path, data, connection_header, **kwargs):
60 headers = self.headers.copy()
61 if connection_header is not None:
62 headers["Connection"] = connection_header
63 self.conn.request(method, path, data, headers, **kwargs)
64 return self.conn.getresponse()
65
66 def post(self, path, data, connection_header=None, **kwargs):
67 return self._request('POST', path, data, connection_header, **kwargs)

Callers 4

postMethod · 0.95
getMethod · 0.95
send_raw_rpcFunction · 0.45

Calls 2

requestMethod · 0.80
copyMethod · 0.45

Tested by

no test coverage detected