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

Method endheaders

Lib/http/client.py:1346–1357  ·  view source on GitHub ↗

Indicate that the last header line has been sent to the server. This method sends the request to the server. The optional message_body argument can be used to pass a message body associated with the request.

(self, message_body=None, *, encode_chunked=False)

Source from the content-addressed store, hash-verified

1344 self._output(header)
1345
1346 def endheaders(self, message_body=None, *, encode_chunked=False):
1347 """Indicate that the last header line has been sent to the server.
1348
1349 This method sends the request to the server. The optional message_body
1350 argument can be used to pass a message body associated with the
1351 request.
1352 """
1353 if self.__state == _CS_REQ_STARTED:
1354 self.__state = _CS_REQ_SENT
1355 else:
1356 raise CannotSendHeader()
1357 self._send_output(message_body, encode_chunked=encode_chunked)
1358
1359 def request(self, method, url, body=None, headers={}, *,
1360 encode_chunked=False):

Callers 15

_send_requestMethod · 0.95
emitMethod · 0.80
test_version_bogusMethod · 0.80
test_version_digitsMethod · 0.80
test_version_none_getMethod · 0.80
test_version_noneMethod · 0.80
test_version_invalidMethod · 0.80

Calls 2

_send_outputMethod · 0.95
CannotSendHeaderClass · 0.85