MCPcopy Create free account
hub / github.com/EasyIME/PIME / _curl_create

Method _curl_create

python/python3/tornado/curl_httpclient.py:314–324  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

312 app_log.error("Exception in callback %r", callback, exc_info=True)
313
314 def _curl_create(self) -> pycurl.Curl:
315 curl = pycurl.Curl()
316 if curl_log.isEnabledFor(logging.DEBUG):
317 curl.setopt(pycurl.VERBOSE, 1)
318 curl.setopt(pycurl.DEBUGFUNCTION, self._curl_debug)
319 if hasattr(
320 pycurl, "PROTOCOLS"
321 ): # PROTOCOLS first appeared in pycurl 7.19.5 (2014-07-12)
322 curl.setopt(pycurl.PROTOCOLS, pycurl.PROTO_HTTP | pycurl.PROTO_HTTPS)
323 curl.setopt(pycurl.REDIR_PROTOCOLS, pycurl.PROTO_HTTP | pycurl.PROTO_HTTPS)
324 return curl
325
326 def _curl_setup_request(
327 self,

Callers 1

initializeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected