MCPcopy
hub / github.com/benoitc/gunicorn / should_close

Method should_close

gunicorn/http/wsgi.py:307–316  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:

Callers 4

default_headersMethod · 0.95
__next__Method · 0.45
handle_requestMethod · 0.45
handle_requestMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected