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

Method request

Lib/http/client.py:1355–1358  ·  view source on GitHub ↗

Send a complete request to the server.

(self, method, url, body=None, headers={}, *,
                encode_chunked=False)

Source from the content-addressed store, hash-verified

1353 self._send_output(message_body, encode_chunked=encode_chunked)
1354
1355 def request(self, method, url, body=None, headers={}, *,
1356 encode_chunked=False):
1357 """Send a complete request to the server."""
1358 self._send_request(method, url, body, headers, encode_chunked)
1359
1360 def _send_request(self, method, url, body, headers, encode_chunked):
1361 # Honor explicitly requested Host: and Accept-Encoding: headers.

Callers 15

test_auto_headersMethod · 0.95
test_content_length_0Method · 0.95
test_ipv6host_headerMethod · 0.95
test_explicit_headersMethod · 0.95
test_requestMethod · 0.95
test_empty_bodyMethod · 0.95
test_send_fileMethod · 0.95
test_send_iterMethod · 0.95
test_send_type_errorMethod · 0.95
test_epipeMethod · 0.95

Calls 1

_send_requestMethod · 0.95

Tested by 15

test_auto_headersMethod · 0.76
test_content_length_0Method · 0.76
test_ipv6host_headerMethod · 0.76
test_explicit_headersMethod · 0.76
test_requestMethod · 0.76
test_empty_bodyMethod · 0.76
test_send_fileMethod · 0.76
test_send_iterMethod · 0.76
test_send_type_errorMethod · 0.76
test_epipeMethod · 0.76