MCPcopy Index your code
hub / github.com/RustPython/RustPython / send_content

Method send_content

Lib/test/test_xmlrpc.py:1191–1195  ·  view source on GitHub ↗
(self, connection, body)

Source from the content-addressed store, hash-verified

1189 return xmlrpclib.Transport.parse_response(self, response)
1190
1191 def send_content(self, connection, body):
1192 if self.fake_gzip:
1193 #add a lone gzip header to induce decode error remotely
1194 connection.putheader("Content-Encoding", "gzip")
1195 return xmlrpclib.Transport.send_content(self, connection, body)
1196
1197 def setUp(self):
1198 BaseServerTestCase.setUp(self)

Callers

nothing calls this directly

Calls 1

putheaderMethod · 0.80

Tested by

no test coverage detected