MCPcopy
hub / github.com/aio-libs/aiohttp / StopResource

Class StopResource

benchmark/async.py:152–158  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

150 return b'OK'
151
152 class StopResource(Resource):
153
154 isLeaf = True
155
156 def render_GET(self, request):
157 reactor.callLater(0.1, reactor.stop)
158 return b'OK'
159
160 root = Resource()
161 root.putChild(b'test', TestResource(None))

Callers 1

run_twistedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected