ProxyConfiguration class
Holds configuration details for connecting through an HTTP proxy server.
Constructors
- ProxyConfiguration({required String host, required int port, String? username, String? password})
-
Creates a constant ProxyConfiguration instance.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- host → String
-
The hostname or IP address of the proxy server.
final
- password → String?
-
The password for proxy authentication (optional).
final
- port → int
-
The port number of the proxy server.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- username → String?
-
The username for proxy authentication (optional).
final
Methods
-
createClient(
) → HttpClient - Creates and configures an HttpClient instance to use this proxy configuration.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited