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

Method post_raw

test/functional/interface_http.py:75–80  ·  view source on GitHub ↗
(self, path, data)

Source from the content-addressed store, hash-verified

73 self.conn.sock.sendall(data)
74
75 def post_raw(self, path, data):
76 data_bytes = data.encode("utf-8")
77 req = f"POST {path} HTTP/1.1\r\n"
78 req += f'Authorization: Basic {str_to_b64str(self.authpair)}\r\n'
79 req += f'Content-Length: {len(data_bytes)}\r\n\r\n'
80 self.send_raw(req.encode("ascii") + data_bytes)
81
82 def recv_raw(self):
83 '''

Callers 3

check_pipeliningMethod · 0.95

Calls 3

send_rawMethod · 0.95
str_to_b64strFunction · 0.90
encodeMethod · 0.45

Tested by

no test coverage detected