次の方法で共有


ConnectionConfiguration Class

HTTP transport connection configuration settings.

Common properties that can be configured on all transports. Found in the Configuration object.

Constructor

ConnectionConfiguration(*, connection_timeout: float = 300, read_timeout: float = 300, connection_verify: bool | str = True, connection_cert: str | None = None, connection_data_block_size: int = 4096, **kwargs: Any)

Keyword-Only Parameters

Name Description
connection_timeout

A single float in seconds for the connection timeout. Defaults to 300 seconds.

Default value: 300
read_timeout

A single float in seconds for the read timeout. Defaults to 300 seconds.

Default value: 300
connection_verify
bool or str

SSL certificate verification. Enabled by default. Set to False to disable, alternatively can be set to the path to a CA_BUNDLE file or directory with certificates of trusted CAs.

Default value: True
connection_cert
str

Client-side certificates. You can specify a local cert to use as client side certificate, as a single file (containing the private key and the certificate) or as a tuple of both files' paths.

Default value: None
connection_data_block_size
int

The block size of data sent over the connection. Defaults to 4096 bytes.

Default value: 4096