Twisted Web code examples
    
    
    
    twisted.web.client
    
        - getpage.py - use
        twisted.web.client.getPageto download a web
        page.
- dlpage.py - add callbacks to
        twisted.web.client.downloadPageto display errors
        that occur when downloading a web page
XML-RPC
    
        - xmlrpc.py XML-RPC server with
        several methods, including echoing, faulting, returning
        deferreds and failed deferreds
- xmlrpcclient.py - use
        twisted.web.xmlrpc.Proxyto call remote XML-RPC
        methods
- advogato.py - use
        twisted.web.xmlrpcto post a diary entry to
        advogato.org; requires an advogato account
Virtual hosts and proxies
    
        - proxy.py -
        use twisted.web.proxy.Proxyto make the simplest
        proxy
- logging-proxy.py - example of
        subclassing the core classes of twisted.web.proxyto log requests through a proxy
- reverse-proxy.py - use
        twisted.web.proxy.ReverseProxyResourceto make
        any HTTP request to the proxy port get applied to a specified
        website
- rootscript.py - example use of
        twisted.web.vhost.NameVirtualHost
- web.py - an example of both using the
        processorsattribute to set how certain file types
        are treated and usingtwisted.web.vhost.VHostMonsterResourceto reverse
        proxy
.rpys and ResourceTemplate
    
        - hello.rpy.py - use
        twisted.web.staticto create a static resource to
        serve
- fortune.rpy.py - create a
        resource that returns the output of a process run on the
        server
- lj.rpy.py - use
        twisted.web.microdom,twisted.web.domhelpers, and chained callbacks to
        extract and display parts of a livejournal user's rss page
- report.rpy.py - display
        various properties of a resource, including path, host, and
        port
- users.rpy.py - use
        twisted.web.distribto publish user directories
        as for a "community web site"
- simple.rtl - example use of
        twisted.web.resource.ResourceTemplate
Miscellaneous
    
        - webguard.py - pairing
        twisted.webwithtwisted.credto
        guard resources against unauthenticated users
- silly-web.py - bare-bones
        distributed web setup with a master and slave using
        twisted.web.distribandtwisted.spread.pb
- soap.py - use
        twisted.web.soapto publish SOAP methods
 
    Index
    Version: 13.2.0