MCPcopy
hub / github.com/cherrypy/cherrypy / release_serving

Method release_serving

cherrypy/_cptree.py:165–176  ·  view source on GitHub ↗

Release the current serving (request and response).

(self)

Source from the content-addressed store, hash-verified

163 return req, resp
164
165 def release_serving(self):
166 """Release the current serving (request and response)."""
167 req = cherrypy.serving.request
168
169 cherrypy.engine.publish('after_request')
170
171 try:
172 req.close()
173 except Exception:
174 cherrypy.log(traceback=True, severity=40)
175
176 cherrypy.serving.clear()
177
178 def __call__(self, environ, start_response):
179 """Call a WSGI-callable."""

Callers 3

handlerFunction · 0.80
closeMethod · 0.80
respondMethod · 0.80

Calls 4

publishMethod · 0.80
logMethod · 0.80
closeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected