Ticket #4891: test.rpy

File test.rpy, 248 bytes (added by Tom Prince, 6 years ago)

twistd -n web --resource-script=test.rpy

Line 
1from twisted.web.resource import Resource
2from twisted.web.static import Data
3
4class Never(Resource):
5        def render_GET(self, request):
6                return 1
7
8resource = Data('', 'text/plain')
9resource.putChild('never', Never())
10resource.putChild('', resource)