Did I find the right examples for you? yes no

All Samples(177)  |  Call(177)  |  Derive(0)  |  Import(0)
Register a static child.

You almost certainly don't want '/' in your path. If you
intended to have the root of a folder, e.g. /foo/, you want
path to be ''.

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/doc/web/examples/web.py   oh-mainline(Download)
            '.rpy': script.ResourceScript,
}
root.putChild('vhost', vhost.VHostMonsterResource())
site = server.Site(root)
reactor.listenTCP(1999, site)

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/doc/web/examples/web.py   hortonworks-sandbox(Download)
            '.trp': trp.ResourceUnpickler,
}
root.putChild('vhost', vhost.VHostMonsterResource())
site = server.Site(root)
reactor.listenTCP(1999, site)

src/a/u/AutobahnPython-HEAD/examples/twisted/websocket/echo_service/echows/echoservice.py   AutobahnPython(Download)
 
      ## and our WebSocket server under "/ws"
      root.putChild("ws", resource)
 
      ## both under one Twisted Web Site

src/a/u/AutobahnPython-HEAD/examples/twisted/wamp1/apps/keyvalue/server.py   AutobahnPython(Download)
 
   ## and our WebSocket server under "/ws"
   root.putChild("ws", resource)
 
   ## both under one Twisted Web Site

src/a/u/AutobahnPython-HEAD/examples/twisted/wamp/work/longpoll/server.py   AutobahnPython(Download)
 
   root = File("longpoll")
   root.putChild("wamp", wampResource)
 
   site = Site(root)

src/a/u/AutobahnPython-HEAD/examples/twisted/wamp/auth/persona/server.py   AutobahnPython(Download)
   ## .. and our WebSocket server under "/ws"
   resource = WebSocketResource(transport_factory)
   root.putChild("ws", resource)
 
   ## run both under one Twisted Web Site

src/t/w/twisted-network-programming-essentials-examples-HEAD/Chapter4-Web-Servers/ex4-static_dispatch.py   twisted-network-programming-essentials-examples(Download)
 
root = File('/var/www/mysite')
root.putChild("doc", File("/usr/share/doc"))
root.putChild("logs", File("/var/log/mysitelogs"))
factory = Site(root)

src/a/u/AutobahnPython-HEAD/examples/twisted/websocket/echo_site_tls/server.py   AutobahnPython(Download)
 
   ## and our WebSocket server under "/ws"
   root.putChild("ws", resource)
 
   ## both under one Twisted Web Site

src/a/u/AutobahnPython-HEAD/examples/twisted/websocket/echo_site/server.py   AutobahnPython(Download)
 
   ## and our WebSocket server under "/ws"
   root.putChild("ws", resource)
 
   ## both under one Twisted Web Site

src/a/u/AutobahnPython-HEAD/examples/twisted/websocket/auth_persona/server.py   AutobahnPython(Download)
   ## .. and our WebSocket server under "/ws"
   resource = WebSocketResource(factory)
   root.putChild("ws", resource)
 
   ## run both under one Twisted Web Site

  1 | 2 | 3 | 4 | 5 | 6  Next