File tree 1 file changed +7
-3
lines changed
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -157,6 +157,7 @@ def get_parser(with_examples: bool = False) -> ArgumentParser:
157
157
choices = [
158
158
"auto" ,
159
159
"aiohttp" ,
160
+ "httpx" ,
160
161
"phoenix" ,
161
162
"websockets" ,
162
163
"aiohttp_websockets" ,
@@ -330,10 +331,13 @@ def get_transport(args: Namespace) -> Optional[AsyncTransport]:
330
331
331
332
return AIOHTTPTransport (url = args .server , ** transport_args )
332
333
334
+ elif transport_name == "httpx" :
335
+ from gql .transport .httpx import HTTPXAsyncTransport
336
+
337
+ return HTTPXAsyncTransport (url = args .server , ** transport_args )
338
+
333
339
elif transport_name == "phoenix" :
334
- from gql .transport .phoenix_channel_websockets import (
335
- PhoenixChannelWebsocketsTransport ,
336
- )
340
+ from gql .transport .phoenix_channel_websockets import PhoenixChannelWebsocketsTransport
337
341
338
342
return PhoenixChannelWebsocketsTransport (url = args .server , ** transport_args )
339
343
You can’t perform that action at this time.
0 commit comments