MCPcopy Create free account
hub / github.com/RustPython/RustPython / _encode_request

Method _encode_request

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

Source from the content-addressed store, hash-verified

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

Callers 1

putrequestMethod · 0.95

Calls 1

encodeMethod · 0.45

Tested by

no test coverage detected