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

Method close

Lib/wsgiref/handlers.py:336–346  ·  view source on GitHub ↗

Close the iterable (if needed) and reset all instance vars Subclasses may want to also drop the client connection.

(self)

Source from the content-addressed store, hash-verified

334 pass # XXX check if content-length was too short?
335
336 def close(self):
337 """Close the iterable (if needed) and reset all instance vars
338
339 Subclasses may want to also drop the client connection.
340 """
341 try:
342 if hasattr(self.result,'close'):
343 self.result.close()
344 finally:
345 self.result = self.headers = self.status = self.environ = None
346 self.bytes_sent = 0; self.headers_sent = False
347
348
349 def send_headers(self):

Callers 2

runMethod · 0.95
finish_responseMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected