sdk.lusid.extensions.tcp_keep_alive_connector.TCPKeepAliveHTTPConnectionPool
- class TCPKeepAliveHTTPConnectionPool(host, port=None, timeout=_TYPE_DEFAULT.token, 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.
schemeMethods
closeClose all pooled connections and disable the pool.
is_same_hostCheck if the given
urlis a member of the same host as this connection pool.requestMake a request using
urlopen()with the appropriate encoding offieldsbased on themethodused.request_encode_bodyMake a request using
urlopen()with thefieldsencoded in the body.request_encode_urlMake a request using
urlopen()with thefieldsencoded in the url.urlopenGet a connection from the pool and perform an HTTP request.