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

Method request

Lib/http/client.py:1359–1362  ·  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

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

Callers 15

test_http_clientFunction · 0.95
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

Calls 1

_send_requestMethod · 0.95

Tested by 15

test_http_clientFunction · 0.76
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