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

Method cleanup_headers

Lib/wsgiref/handlers.py:217–223  ·  view source on GitHub ↗

Make any necessary header changes or defaults Subclasses can extend this to add other defaults.

(self)

Source from the content-addressed store, hash-verified

215
216
217 def cleanup_headers(self):
218 """Make any necessary header changes or defaults
219
220 Subclasses can extend this to add other defaults.
221 """
222 if 'Content-Length' not in self.headers:
223 self.set_content_length()
224
225 def start_response(self, status, headers,exc_info=None):
226 """'start_response()' callable as specified by PEP 3333"""

Callers 1

send_headersMethod · 0.95

Calls 1

set_content_lengthMethod · 0.95

Tested by

no test coverage detected