Close the iterable (if needed) and reset all instance vars Subclasses may want to also drop the client connection.
(self)
| 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): |
no outgoing calls
no test coverage detected