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

Function base_environ

gunicorn/http/wsgi.py:78–88  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

76
77
78def base_environ(cfg):
79 return {
80 "wsgi.errors": WSGIErrorsWrapper(cfg),
81 "wsgi.version": (1, 0),
82 "wsgi.multithread": False,
83 "wsgi.multiprocess": (cfg.workers > 1),
84 "wsgi.run_once": False,
85 "wsgi.file_wrapper": FileWrapper,
86 "wsgi.input_terminated": True,
87 "SERVER_SOFTWARE": SERVER_SOFTWARE,
88 }
89
90
91def default_environ(req, sock, cfg):

Callers 2

runMethod · 0.90
default_environFunction · 0.85

Calls 1

WSGIErrorsWrapperClass · 0.85

Tested by

no test coverage detected