@@ -106,10 +106,16 @@ class AsyncTransportProtocolErrorHandler(AsyncTransport):
106
106
107
107
@retry_connection_error (attempts = 2 , exception = httpx .RemoteProtocolError )
108
108
async def post (self , address , message , headers ):
109
+ import pprint
110
+
111
+ pprint .pprint (["post" , address , message , headers ])
109
112
return await super ().post (address , message , headers )
110
113
111
114
@retry_connection_error (attempts = 2 , exception = httpx .RemoteProtocolError )
112
115
async def get (self , address , params , headers ):
116
+ import pprint
117
+
118
+ pprint .pprint (["get" , address , params , headers ])
113
119
return await super ().get (address , params , headers )
114
120
115
121
@@ -240,7 +246,7 @@ def __init__(
240
246
verify = _NO_VERIFY_SSL_CONTEXT , timeout = timeouts , limits = _HTTPX_LIMITS
241
247
)
242
248
self .transport = (
243
- AsyncTransport (client = client , wsdl_client = wsdl_client )
249
+ AsyncTransportProtocolErrorHandler (client = client , wsdl_client = wsdl_client )
244
250
if no_cache
245
251
else AsyncTransportProtocolErrorHandler (
246
252
client = client , wsdl_client = wsdl_client , cache = SqliteCache ()
0 commit comments