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

Method sendfile

gunicorn/config.py:227–235  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

225
226 @property
227 def sendfile(self):
228 if self.settings['sendfile'].get() is not None:
229 return False
230
231 if 'SENDFILE' in os.environ:
232 sendfile = os.environ['SENDFILE'].lower()
233 return sendfile in ['y', '1', 'yes', 'true']
234
235 return True
236
237 @property
238 def reuse_port(self):

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected