Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
CustomProxy Class Reference

Public Member Functions

def __init__
 
def handle
 
def get_proxy
 

Data Fields

 proto
 
 func
 
 addr
 

Detailed Description

Definition at line 475 of file urllib2.py.

Constructor & Destructor Documentation

def __init__ (   self,
  proto,
  func = None,
  proxy_addr = None 
)

Definition at line 477 of file urllib2.py.

478  def __init__(self, proto, func=None, proxy_addr=None):
479  self.proto = proto
480  self.func = func
481  self.addr = proxy_addr

Member Function Documentation

def get_proxy (   self)

Definition at line 486 of file urllib2.py.

References dispatcher.addr, and CustomProxy.addr.

487  def get_proxy(self):
488  return self.addr
def handle (   self,
  req 
)

Definition at line 482 of file urllib2.py.

References CustomProxy.func.

483  def handle(self, req):
484  if self.func and self.func(req):
485  return 1

Field Documentation

addr

Definition at line 480 of file urllib2.py.

func

Definition at line 479 of file urllib2.py.

proto

Definition at line 478 of file urllib2.py.


The documentation for this class was generated from the following file: