Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 2.46 KB

index.rst

File metadata and controls

50 lines (34 loc) · 2.46 KB
LastChangedDate: $LastChangedDate$
LastChangedRevision: $LastChangedRevision$
LastChangedBy: $LastChangedBy$

Examples

twisted.web.client

XML-RPC

Virtual hosts and proxies

  • :download:`proxy.py` - use twisted.web.proxy.Proxy to make the simplest proxy
  • :download:`logging-proxy.py` - example of subclassing the core classes of twisted.web.proxy to log requests through a proxy
  • :download:`reverse-proxy.py` - use twisted.web.proxy.ReverseProxyResource to make any HTTP request to the proxy port get applied to a specified website
  • :download:`rootscript.py` - example use of twisted.web.vhost.NameVirtualHost
  • :download:`web.py` - an example of both using the processors attribute to set how certain file types are treated and using twisted.web.vhost.VHostMonsterResource to reverse proxy

.rpys and ResourceTemplate

Miscellaneous

  • :download:`webguard.py` - pairing twisted.web with twisted.cred to guard resources against unauthenticated users
  • :download:`silly-web.py` - bare-bones distributed web setup with a master and slave using twisted.web.distrib and twisted.spread.pb