Provides information about a proxy connection that is used for requests.
| 24 | @dataclass |
| 25 | @docs_group('Other') |
| 26 | class ProxyInfo: |
| 27 | """Provides information about a proxy connection that is used for requests.""" |
| 28 | |
| 29 | url: str |
| 30 | """The URL of the proxy.""" |
| 31 | |
| 32 | scheme: str |
| 33 | """The scheme of the proxy.""" |
| 34 | |
| 35 | hostname: str |
| 36 | """The hostname of the proxy.""" |
| 37 | |
| 38 | port: int |
| 39 | """The proxy port.""" |
| 40 | |
| 41 | username: str = '' |
| 42 | """The username for the proxy.""" |
| 43 | |
| 44 | password: str = '' |
| 45 | """The password for the proxy.""" |
| 46 | |
| 47 | session_id: str | None = None |
| 48 | """The identifier of the used proxy session, if used. |
| 49 | Using the same session ID guarantees getting the same proxy URL.""" |
| 50 | |
| 51 | proxy_tier: int | None = None |
| 52 | """The tier of the proxy.""" |
| 53 | |
| 54 | |
| 55 | @docs_group('Configuration') |
no outgoing calls