Commits

Oscar Campos committed 458a6b8

Deletions

Comments (0)

Files changed (2)

deleteme

Empty file removed.

webservice.py

-from twisted.web import server, resource
-
-class HelloResource(resource.Resource):
-    isLeaf = True
-    numberRequests = 0
-    
-    def render_GET(self, request):
-        self.numberRequests += 1
-        request.setHeader("content-type", "text/plain")
-        return "I am request #" + str(self.numberRequests) + "\n"
-
-resource = HelloResource()