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

Function default_environ

gunicorn/http/wsgi.py:91–101  ·  view source on GitHub ↗
(req, sock, cfg)

Source from the content-addressed store, hash-verified

89
90
91def default_environ(req, sock, cfg):
92 env = base_environ(cfg)
93 env.update({
94 "wsgi.input": req.body,
95 "gunicorn.socket": sock,
96 "REQUEST_METHOD": req.method,
97 "QUERY_STRING": req.query,
98 "RAW_URI": req.uri,
99 "SERVER_PROTOCOL": "HTTP/%s" % ".".join([str(v) for v in req.version])
100 })
101 return env
102
103
104def proxy_environ(req):

Callers 2

handle_errorMethod · 0.90
createFunction · 0.85

Calls 1

base_environFunction · 0.85

Tested by

no test coverage detected