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

Method _encode_request

Lib/http/client.py:1289–1291  ·  view source on GitHub ↗
(self, request)

Source from the content-addressed store, hash-verified

1287 pass
1288
1289 def _encode_request(self, request):
1290 # ASCII also helps prevent CVE-2019-9740.
1291 return request.encode('ascii')
1292
1293 def _validate_method(self, method):
1294 """Validate a method name for putrequest."""

Callers 1

putrequestMethod · 0.95

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected