MCPcopy Create free account
hub / github.com/fortra/impacket / connect

Method connect

impacket/http.py:110–118  ·  view source on GitHub ↗
(self, protocol, host_L6)

Source from the content-addressed store, hash-verified

108 return ret
109
110 def connect(self, protocol, host_L6):
111 if protocol == 'http':
112 return HTTPConnection(host_L6)
113 else:
114 try:
115 uv_context = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
116 return HTTPSConnection(host_L6, context=uv_context)
117 except AttributeError:
118 return HTTPSConnection(host_L6)
119
120 def get_auth_headers(self, http_obj, method, path, headers):
121 if self.__auth_type == AUTH_BASIC:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected