You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -149,14 +149,14 @@ Various combinations of sync/async HTTP libraries as well as alternative event l
149
149
150
150
The transport is the last node in the pipeline, and adheres to the same basic API as any policy within the pipeline.
151
151
The only currently available transport for synchronous pipelines uses the `Requests` library:
152
-
```
152
+
```python
153
153
from azure.core.pipeline.transport import RequestsTransport
154
154
synchronous_transport = RequestsTransport()
155
155
```
156
156
157
157
For asynchronous pipelines a couple of transport options are available. Each of these transports are interchangable depending on whether the user has installed various 3rd party dependencies (i.e. aiohttp or trio), and the user
158
158
should easily be able to specify their chosen transport. SDK developers should use the `aiohttp` transport as the default for asynchronous pipelines where the user has not specified an alternative.
159
-
```
159
+
```python
160
160
from azure.foo.aio import FooServiceClient
161
161
from azure.core.pipeline.transport import (
162
162
# Identical implementation as the synchronous RequestsTransport wrapped in an asynchronous using the
@@ -171,28 +171,30 @@ from azure.core.pipeline.transport import (
Some common properties can be configured on all transports, and can be set on the ConnectionConfiguration, found in the Configuration object described above. These include the following properties:
178
+
Some common properties can be configured on all transports. They must be passed
179
+
as kwargs arguments while building the transport instance. These include the following properties:
179
180
```python
180
-
classConnectionConfiguration(object):
181
-
"""Configuration of HTTP transport.
182
-
183
-
:param int connection_timeout: The connect and read timeout value. Defaults to 100 seconds.
184
-
:param bool connection_verify: SSL certificate verification. Enabled by default. Set to False to disable,
185
-
alternatively can be set to the path to a CA_BUNDLE file or directory with certificates of trusted CAs.
186
-
:param str connection_cert: Client-side certificates. You can specify a local cert to use as client side
187
-
certificate, as a single file (containing the private key and the certificate) or as a tuple of both files' paths.
188
-
:param int connection_data_block_size: The block size of data sent over the connection. Defaults to 4096 bytes.
0 commit comments