Esempio n. 1
0
 def __init__(self,
              ssh_transport,
              host='',
              port=None,
              strict=None,
              localport=DEFAULT_LOCAL_PORT_START):
     self.localport = localport
     self.ssh_transport = ssh_transport
     HTTP.__init__(self, host, port, strict)
Esempio n. 2
0
 def __init__(self, host='', port=0, timeout=10.0):
     self.connect_timeout = timeout
     HTTP.__init__(self, host, port)
Esempio n. 3
0
 def __init__(self, host='', port=None, **ssl):
     HTTP.__init__(self, host, port)
     try:
         self.ssl_ctx = ssl['ssl_context']
     except KeyError:
         self.ssl_ctx = SSL.Context('sslv23')
Esempio n. 4
0
 def __init__(self, ssh_transport, host="", port=None, strict=None, localport=DEFAULT_LOCAL_PORT_START):
     self.localport = localport
     self.ssh_transport = ssh_transport
     HTTP.__init__(self, host, port, strict)
Esempio n. 5
0
 def __init__(self, host='', port=None, **ssl):
     HTTP.__init__(self, host, port)
     try:
         self.ssl_ctx = ssl['ssl_context']
     except KeyError:
         self.ssl_ctx = SSL.Context('sslv23')
Esempio n. 6
0
 def __init__(self, host="", port=None, **ssl):
     HTTP.__init__(self, host, port)
     try:
         self.ssl_ctx = ssl["ssl_context"]
     except KeyError:
         self.ssl_ctx = SSL.Context("sslv23")
 def __init__(self, host="", port=0, timeout=10.0):
     self.connect_timeout = timeout
     HTTP.__init__(self, host, port)