We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b2f2a68 commit 06e8de0Copy full SHA for 06e8de0
gql/cli.py
@@ -157,6 +157,7 @@ def get_parser(with_examples: bool = False) -> ArgumentParser:
157
choices=[
158
"auto",
159
"aiohttp",
160
+ "httpx",
161
"phoenix",
162
"websockets",
163
"aiohttp_websockets",
@@ -330,6 +331,11 @@ def get_transport(args: Namespace) -> Optional[AsyncTransport]:
330
331
332
return AIOHTTPTransport(url=args.server, **transport_args)
333
334
+ elif transport_name == "httpx":
335
+ from gql.transport.httpx import HTTPXAsyncTransport
336
+
337
+ return HTTPXAsyncTransport(url=args.server, **transport_args)
338
339
elif transport_name == "phoenix":
340
from gql.transport.phoenix_channel_websockets import (
341
PhoenixChannelWebsocketsTransport,
0 commit comments