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

Method _omits

tests/test_asgi_streaming.py:354–356  ·  view source on GitHub ↗
(self, method, status)

Source from the content-addressed store, hash-verified

352 """Verify HEAD/1xx/204/304 are flagged as bodyless responses."""
353
354 def _omits(self, method, status):
355 from gunicorn.asgi.protocol import ASGIProtocol
356 return ASGIProtocol._response_omits_body(method, status)
357
358 def test_head_omits_body(self):
359 assert self._omits("HEAD", 200) is True

Callers 7

test_head_omits_bodyMethod · 0.95
test_204_omits_bodyMethod · 0.95
test_304_omits_bodyMethod · 0.95
test_get_200_has_bodyMethod · 0.95
test_404_has_bodyMethod · 0.95

Calls 1

_response_omits_bodyMethod · 0.80

Tested by

no test coverage detected