Add new flags "http-stack" and "async-http-stack" #2246
Labels
feature-request
This issue requires a new behavior in the product in order be resolved.
need-design
needs coding design
p1
corehttp
will not install any HTTP stack by default, and will require one installed by the SDK itself.This issue is to add a flag that with those values:
http-stack
:requests
httpx
async-http-stack
:aiohttp
httpx
Default behavior if no flag is
requests
andaiohttp
Once this flag is set, we need to generate different code:
extra_requires
to make this experience easier. Change setup.py accordingly tocorehttp[requests]
orcorehttp[httpx]
or the combined versioncorehttp[requests, httpx]
transport
of the right type, and pass it to thePipelineClient
(resp.AsyncPipelineClient
. Beware to pop customer 'transport' kwarg as well. Also, the import needs to be inside the constructor, the import is not done if thetransport
kwarg is set. For instance:The text was updated successfully, but these errors were encountered: