cookies: CookieTypes = None,
verify: VerifyTypes = True,
cert: CertTypes = None,
+ http1: bool = True,
http2: bool = False,
proxies: ProxiesTypes = None,
mounts: typing.Mapping[str, BaseTransport] = None,
self._transport = self._init_transport(
verify=verify,
cert=cert,
+ http1=http1,
http2=http2,
limits=limits,
transport=transport,
proxy,
verify=verify,
cert=cert,
+ http1=http1,
http2=http2,
limits=limits,
trust_env=trust_env,
self,
verify: VerifyTypes = True,
cert: CertTypes = None,
+ http1: bool = True,
http2: bool = False,
limits: Limits = DEFAULT_LIMITS,
transport: BaseTransport = None,
return WSGITransport(app=app)
return HTTPTransport(
- verify=verify, cert=cert, http2=http2, limits=limits, trust_env=trust_env
+ verify=verify,
+ cert=cert,
+ http1=http1,
+ http2=http2,
+ limits=limits,
+ trust_env=trust_env,
)
def _init_proxy_transport(
proxy: Proxy,
verify: VerifyTypes = True,
cert: CertTypes = None,
+ http1: bool = True,
http2: bool = False,
limits: Limits = DEFAULT_LIMITS,
trust_env: bool = True,
return HTTPTransport(
verify=verify,
cert=cert,
+ http1=http1,
http2=http2,
limits=limits,
trust_env=trust_env,
cookies: CookieTypes = None,
verify: VerifyTypes = True,
cert: CertTypes = None,
+ http1: bool = True,
http2: bool = False,
proxies: ProxiesTypes = None,
mounts: typing.Mapping[str, AsyncBaseTransport] = None,
self._transport = self._init_transport(
verify=verify,
cert=cert,
+ http1=http1,
http2=http2,
limits=limits,
transport=transport,
proxy,
verify=verify,
cert=cert,
+ http1=http1,
http2=http2,
limits=limits,
trust_env=trust_env,
self,
verify: VerifyTypes = True,
cert: CertTypes = None,
+ http1: bool = True,
http2: bool = False,
limits: Limits = DEFAULT_LIMITS,
transport: AsyncBaseTransport = None,
return ASGITransport(app=app)
return AsyncHTTPTransport(
- verify=verify, cert=cert, http2=http2, limits=limits, trust_env=trust_env
+ verify=verify,
+ cert=cert,
+ http1=http1,
+ http2=http2,
+ limits=limits,
+ trust_env=trust_env,
)
def _init_proxy_transport(
proxy: Proxy,
verify: VerifyTypes = True,
cert: CertTypes = None,
+ http1: bool = True,
http2: bool = False,
limits: Limits = DEFAULT_LIMITS,
trust_env: bool = True,
self,
verify: VerifyTypes = True,
cert: CertTypes = None,
+ http1: bool = True,
http2: bool = False,
limits: Limits = DEFAULT_LIMITS,
trust_env: bool = True,
max_connections=limits.max_connections,
max_keepalive_connections=limits.max_keepalive_connections,
keepalive_expiry=limits.keepalive_expiry,
+ http1=http1,
http2=http2,
uds=uds,
local_address=local_address,
self,
verify: VerifyTypes = True,
cert: CertTypes = None,
+ http1: bool = True,
http2: bool = False,
limits: Limits = DEFAULT_LIMITS,
trust_env: bool = True,
max_connections=limits.max_connections,
max_keepalive_connections=limits.max_keepalive_connections,
keepalive_expiry=limits.keepalive_expiry,
+ http1=http1,
http2=http2,
uds=uds,
local_address=local_address,