5 content_type='text/plain',
6 content='Hello, world\n',
9 app = phial.App(handler)
11 if __name__ == '__main__':
12 from twisted.internet import reactor
13 from twisted.web.server import Site
14 from twisted.web.wsgi import WSGIResource
17 resource = WSGIResource(reactor, reactor.getThreadPool(), app)
19 reactor.listenTCP(5000, site)
20 reactor.run(**reactor_args)