Skip to content
Snippets Groups Projects
Verified Commit 8bc9e485 authored by Timm Fitschen's avatar Timm Fitschen
Browse files

DOC: more docs for the connection classes

parent 5fcdec8a
No related branches found
No related tags found
2 merge requests!79Release 0.10.0,!75F http proxy
Pipeline #29950 failed
......@@ -204,7 +204,7 @@ class _DefaultCaosDBServerConnection(CaosDBServerConnection):
https_proxy = config["https_proxy"] if "https_proxy" in config else None
self._session = HTTPSession()
#self._session.mount(self._base_path, _SSLAdapter(ssl_version))
self._session.mount(self._base_path, _SSLAdapter(ssl_version))
if socket_proxy is not None:
self._session.proxies = {
"https": "socks5://" + socket_proxy,
......
......@@ -479,6 +479,8 @@ def multipart_encode(params, boundary=None, callback=None):
class ReadableMultiparts(object):
"""Wraps instances of the MultipartYielder class as a readable and withable
object."""
def __init__(self, multipart_yielder):
self.multipart_yielder = multipart_yielder
......
......@@ -58,7 +58,7 @@ schema-pycaosdb-ini:
https_proxy:
examples: ["http://localhost:8888", "socks5://localhost:8888", "socks4://localhost:8888"]
type: string
description: Define a proxy for the https connections. These are either (non-TLS) HTTP proxies, SOCKS4 proxies, or SOCKS5 proxies. HTTPS proxies are not supported. However, the connection will be secured using TLS in the tunneled connection nonetheless. Only the connection to the proxy is insecure which is why it is not recommended to use HTTP proxies when authentication against the proxy is necessary. Note: this option is overridden by the HTTPS_PROXY environment variable, if present.
description: "Define a proxy for the https connections. These are either (non-TLS) HTTP proxies, SOCKS4 proxies, or SOCKS5 proxies. HTTPS proxies are not supported. However, the connection will be secured using TLS in the tunneled connection nonetheless. Only the connection to the proxy is insecure which is why it is not recommended to use HTTP proxies when authentication against the proxy is necessary. Note: this option is overridden by the HTTPS_PROXY environment variable, if present."
implementation:
description: This option is used internally and for testing. Do not override.
examples: [_DefaultCaosDBServerConnection]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment