Vega strike Python Modules doc  0.5.1
Documentation of the " Modules " folder of Vega strike
 All Data Structures Namespaces Files Functions Variables
HTTPSConnection Class Reference
Inheritance diagram for HTTPSConnection:
HTTPConnection

Public Member Functions

def __init__
 
def connect
 
- Public Member Functions inherited from HTTPConnection
def __init__
 
def set_debuglevel
 
def connect
 
def close
 
def send
 
def putrequest
 
def putheader
 
def endheaders
 
def request
 
def getresponse
 

Data Fields

 key_file
 
 cert_file
 
 sock
 
- Data Fields inherited from HTTPConnection
 sock
 
 host
 
 port
 
 debuglevel
 

Static Public Attributes

 default_port = HTTPS_PORT
 
- Static Public Attributes inherited from HTTPConnection
 response_class = HTTPResponse
 
 default_port = HTTP_PORT
 
int auto_open = 1
 
int debuglevel = 0
 

Detailed Description

Definition at line 659 of file httplib.py.

Constructor & Destructor Documentation

def __init__ (   self,
  host,
  port = None,
  x509 
)

Definition at line 664 of file httplib.py.

665  def __init__(self, host, port=None, **x509):
666  keys = x509.keys()
667  try:
668  keys.remove('key_file')
669  except ValueError:
670  pass
671  try:
672  keys.remove('cert_file')
673  except ValueError:
674  pass
675  if keys:
676  raise IllegalKeywordArgument()
677  HTTPConnection.__init__(self, host, port)
678  self.key_file = x509.get('key_file')
679  self.cert_file = x509.get('cert_file')

Member Function Documentation

def connect (   self)

Definition at line 680 of file httplib.py.

681  def connect(self):
682  "Connect to a host on a given (SSL) port."
683 
684  sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
685  sock.connect((self.host, self.port))
686  realsock = sock
687  if hasattr(sock, "_sock"):
688  realsock = sock._sock
689  ssl = socket.ssl(realsock, self.key_file, self.cert_file)
690  self.sock = FakeSocket(sock, ssl)
691 

Field Documentation

cert_file

Definition at line 678 of file httplib.py.

default_port = HTTPS_PORT
static

Definition at line 662 of file httplib.py.

key_file

Definition at line 677 of file httplib.py.

sock

Definition at line 689 of file httplib.py.


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