Did I find the right examples for you? yes no

All Samples(33)  |  Call(0)  |  Derive(0)  |  Import(33)
Simplistic HTTP proxy support.

This comes in two main variants - the Proxy and the ReverseProxy.

When a Proxy is in use, a browser trying to connect to a server (say,
www.yahoo.com) will be intercepted by the Proxy, and the proxy will covertly
connect to the server, and return the result.

When a ReverseProxy is in use, the client connects directly to the ReverseProxy
(say, www.yahoo.com) which farms off the request to one of a pool of servers,(more...)

src/h/o/hortonworks-sandbox-HEAD/desktop/core/ext-py/Twisted/doc/web/examples/proxy.py   hortonworks-sandbox(Download)
 
from twisted.internet import reactor
from twisted.web import proxy, server
 
site = server.Site(proxy.ReverseProxyResource('www.yahoo.com', 80, ''))

src/o/h/oh-mainline-HEAD/vendor/packages/twisted/doc/web/examples/proxy.py   oh-mainline(Download)
 
from twisted.internet import reactor
from twisted.web import proxy, server
 
site = server.Site(proxy.ReverseProxyResource('www.yahoo.com', 80, ''))

src/t/w/Twisted-13.2.0/doc/web/examples/reverse-proxy.py   Twisted(Download)
 
from twisted.internet import reactor
from twisted.web import proxy, server
 
site = server.Site(proxy.ReverseProxyResource('www.yahoo.com', 80, ''))

src/t/w/Twisted-13.2.0/doc/web/examples/proxy.py   Twisted(Download)
"""
 
from twisted.web import proxy, http
from twisted.internet import reactor
 

src/t/w/Twisted-13.2.0/doc/web/examples/logging-proxy.py   Twisted(Download)
 
from twisted.internet import reactor
from twisted.web import proxy, http
 
class LoggingProxyRequest(proxy.ProxyRequest):

src/d/e/device-proxy-0.3/devproxy/proxy.py   device-proxy(Download)
from twisted.python import log
from twisted.internet import defer, reactor
from twisted.web import proxy, server, http, resource
 
 

src/a/n/anchor-HEAD/anchor/http.py   anchor(Download)
import os
from ConfigParser import SafeConfigParser
from twisted.internet import reactor, defer
from twisted.web import resource, server, proxy, static
from twisted.python import filepath

src/h/e/hendrix-0.1.1/hendrix/contrib/cache/resource.py   hendrix(Download)
from time import strptime
from twisted.internet import reactor, defer, threads
from twisted.web import proxy, resource, client
from twisted.web.server import NOT_DONE_YET
 

src/s/m/Smap-2.0.bcb1a7/smap/subscriber.py   Smap(Download)
from twisted.web.http_headers import Headers
from twisted.python import log
from twisted.web import resource, server, proxy
 
import util

src/b/a/batchhttp-1.1.1/batchhttp/batchproxy.py   batchhttp(Download)
 
from twisted.internet import reactor, defer
from twisted.web import proxy, server, http
from twisted.internet import interfaces
from twisted.python import log

  1 | 2 | 3 | 4  Next