(self)
| 305 | self.must_close = True |
| 306 | |
| 307 | def should_close(self): |
| 308 | if self.must_close or self.req.should_close(): |
| 309 | return True |
| 310 | if self.response_length is not None or self.chunked: |
| 311 | return False |
| 312 | if self.req.method == 'HEAD': |
| 313 | return False |
| 314 | if self.status_code < 200 or self.status_code in (204, 304): |
| 315 | return False |
| 316 | return True |
| 317 | |
| 318 | def start_response(self, status, headers, exc_info=None): |
| 319 | if exc_info: |
no outgoing calls
no test coverage detected