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

Method send_content

Lib/xmlrpc/client.py:1286–1295  ·  view source on GitHub ↗
(self, connection, request_body)

Source from the content-addressed store, hash-verified

1284 # @param request_body XML-RPC request body.
1285
1286 def send_content(self, connection, request_body):
1287 #optionally encode the request
1288 if (self.encode_threshold is not None and
1289 self.encode_threshold < len(request_body) and
1290 gzip):
1291 connection.putheader("Content-Encoding", "gzip")
1292 request_body = gzip_encode(request_body)
1293
1294 connection.putheader("Content-Length", str(len(request_body)))
1295 connection.endheaders(request_body)
1296
1297 ##
1298 # Parse response.

Callers 1

send_requestMethod · 0.95

Calls 4

gzip_encodeFunction · 0.85
strFunction · 0.85
putheaderMethod · 0.80
endheadersMethod · 0.80

Tested by

no test coverage detected