File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
.generator/src/generator/templates Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,10 @@ class AsyncRESTClientObject:
234
234
def __init__(self, configuration):
235
235
import aiosonic # type: ignore
236
236
237
- self._client = aiosonic.HTTPClient()
237
+ proxy = None
238
+ if configuration.proxy:
239
+ proxy = aiosonic.Proxy(configuration.proxy, configuration.proxy_headers)
240
+ self._client = aiosonic.HTTPClient(proxy=proxy)
238
241
239
242
async def request(
240
243
self,
Original file line number Diff line number Diff line change @@ -236,7 +236,10 @@ class AsyncRESTClientObject:
236
236
def __init__ (self , configuration ):
237
237
import aiosonic # type: ignore
238
238
239
- self ._client = aiosonic .HTTPClient ()
239
+ proxy = None
240
+ if configuration .proxy :
241
+ proxy = aiosonic .Proxy (configuration .proxy , configuration .proxy_headers )
242
+ self ._client = aiosonic .HTTPClient (proxy = proxy )
240
243
241
244
async def request (
242
245
self ,
You can’t perform that action at this time.
0 commit comments