Proxy Model
swiftshadow.models.Proxy
dataclass
Class representing a Proxy object.
Attributes:
Name | Type | Description |
---|---|---|
ip |
str
|
IP Address of the proxy. |
port |
int
|
Port associated with the proxy. |
protocol |
Literal['http', 'https']
|
Protocol type of the proxy. |
Source code in swiftshadow/models.py
as_requests_dict()
Return proxy in requests commpatible dict format.
Returns:
Name | Type | Description |
---|---|---|
dict |
dict[Literal['http', 'https'], str]
|
Dict representation of Proxy class. |
as_string()
Return proxy in a string of format
Returns:
Name | Type | Description |
---|---|---|
string |
str
|
Proxy in string format. |