4 return phial.TextResponse(
5 content='Hello, world\n',
8 app = phial.App(handler)
10 if __name__ == '__main__':
11 from twisted.internet import reactor
12 from twisted.web.server import Site
13 from twisted.web.wsgi import WSGIResource
16 resource = WSGIResource(reactor, reactor.getThreadPool(), app)
18 reactor.listenTCP(5000, site)
19 reactor.run(**reactor_args)