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

Method send_headers

Lib/wsgiref/handlers.py:349–355  ·  view source on GitHub ↗

Transmit headers to the client, via self._write()

(self)

Source from the content-addressed store, hash-verified

347
348
349 def send_headers(self):
350 """Transmit headers to the client, via self._write()"""
351 self.cleanup_headers()
352 self.headers_sent = True
353 if not self.origin_server or self.client_is_modern():
354 self.send_preamble()
355 self._write(bytes(self.headers))
356
357
358 def result_is_file(self):

Callers 2

writeMethod · 0.95
finish_contentMethod · 0.95

Calls 4

cleanup_headersMethod · 0.95
client_is_modernMethod · 0.95
send_preambleMethod · 0.95
_writeMethod · 0.95

Tested by

no test coverage detected