77import httpx
88
99from ..types import proxy_create_params
10- from .._types import Body , Omit , Query , Headers , NoneType , NotGiven , omit , not_given
10+ from .._types import Body , Omit , Query , Headers , NoneType , NotGiven , SequenceNotStr , omit , not_given
1111from .._utils import maybe_transform , async_maybe_transform
1212from .._compat import cached_property
1313from .._resource import SyncAPIResource , AsyncAPIResource
@@ -50,6 +50,7 @@ def create(
5050 self ,
5151 * ,
5252 type : Literal ["datacenter" , "isp" , "residential" , "mobile" , "custom" ],
53+ bypass_hosts : SequenceNotStr [str ] | Omit = omit ,
5354 config : proxy_create_params .Config | Omit = omit ,
5455 name : str | Omit = omit ,
5556 protocol : Literal ["http" , "https" ] | Omit = omit ,
@@ -67,6 +68,8 @@ def create(
6768 type: Proxy type to use. In terms of quality for avoiding bot-detection, from best to
6869 worst: `mobile` > `residential` > `isp` > `datacenter`.
6970
71+ bypass_hosts: Hostnames that should bypass the parent proxy and connect directly.
72+
7073 config: Configuration specific to the selected proxy `type`.
7174
7275 name: Readable name of the proxy.
@@ -86,6 +89,7 @@ def create(
8689 body = maybe_transform (
8790 {
8891 "type" : type ,
92+ "bypass_hosts" : bypass_hosts ,
8993 "config" : config ,
9094 "name" : name ,
9195 "protocol" : protocol ,
@@ -243,6 +247,7 @@ async def create(
243247 self ,
244248 * ,
245249 type : Literal ["datacenter" , "isp" , "residential" , "mobile" , "custom" ],
250+ bypass_hosts : SequenceNotStr [str ] | Omit = omit ,
246251 config : proxy_create_params .Config | Omit = omit ,
247252 name : str | Omit = omit ,
248253 protocol : Literal ["http" , "https" ] | Omit = omit ,
@@ -260,6 +265,8 @@ async def create(
260265 type: Proxy type to use. In terms of quality for avoiding bot-detection, from best to
261266 worst: `mobile` > `residential` > `isp` > `datacenter`.
262267
268+ bypass_hosts: Hostnames that should bypass the parent proxy and connect directly.
269+
263270 config: Configuration specific to the selected proxy `type`.
264271
265272 name: Readable name of the proxy.
@@ -279,6 +286,7 @@ async def create(
279286 body = await async_maybe_transform (
280287 {
281288 "type" : type ,
289+ "bypass_hosts" : bypass_hosts ,
282290 "config" : config ,
283291 "name" : name ,
284292 "protocol" : protocol ,
0 commit comments