sdk.lusid.extensions.tcp_keep_alive_connector.TCPKeepAliveHTTPConnectionPool
- class TCPKeepAliveHTTPConnectionPool(host, port=None, strict=False, timeout=<object object>, maxsize=1, block=False, headers=None, retries=None, _proxy=None, _proxy_headers=None, _proxy_config=None, **conn_kw)[source]
This class overrides the _validate_conn method in the HTTPSConnectionPool class. This is the entry point to use for modifying the socket as it is called after the socket is created and before the request is made.
In the base class this method is passed completely.
Attributes
This is a Pydantic class. For now, click on the green [source] link in the class signature above to see descriptions/allowed values for these attributes.
scheme
Methods
close
Close all pooled connections and disable the pool.
is_same_host
Check if the given
url
is a member of the same host as this connection pool.request
Make a request using
urlopen()
with the appropriate encoding offields
based on themethod
used.request_encode_body
Make a request using
urlopen()
with thefields
encoded in the body.request_encode_url
Make a request using
urlopen()
with thefields
encoded in the url.urlopen
Get a connection from the pool and perform an HTTP request.