CurlClient class

HTTP Client in Linux environment, executing the curl binary. Use it only if the required feature (e.g. SOCKS proxy) is not available in console.dart's ConsoleClient.

Implemented types

Constructors

CurlClient({String? executable, String? userAgent, String? socksHostPort, CurlSocksProxyType socksProxyType = CurlSocksProxyType.socks5})
HTTP Client in Linux environment, executing the curl binary.

Properties

executable String?
The curl executable.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
socksHostPort String?
SOCKS Proxy in host:port format.
final
socksProxyType CurlSocksProxyType
SOCKS Proxy type. Default is SOCKS5.
final
userAgent String?
The HTTP user agent.
final

Methods

close({bool force = false}) Future
Closes any HTTP Client resources.
override
methodSupportsBody(String method) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
send(Request request) Future<Response>
Sends the request and returns the Response
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited