ClientSettings class

Constructors

ClientSettings.new({String? baseUrl, CookieSettings? cookieSettings, HttpVersionPref httpVersionPref = HttpVersionPref.all, TimeoutSettings? timeoutSettings, bool throwOnStatusCode = true, ProxySettings? proxySettings, RedirectSettings? redirectSettings, TlsSettings? tlsSettings, DnsSettings? dnsSettings, String? userAgent})
const

Properties

baseUrl String?
Base URL to be prefixed to all requests.
final
cookieSettings CookieSettings?
Configuration options for cookie handling.
final
dnsSettings DnsSettings?
DNS settings and resolver overrides.
final
hashCode int
The hash code for this object.
no setterinherited
httpVersionPref HttpVersionPref
The preferred HTTP version to use.
final
proxySettings ProxySettings?
Proxy settings.
final
redirectSettings RedirectSettings?
Redirect settings. By default, the client will follow maximum 10 redirects. See: https://docs.rs/reqwest/latest/reqwest/redirect/struct.Policy.html
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
throwOnStatusCode bool
Throws an exception if the status code is 4xx or 5xx.
final
timeoutSettings TimeoutSettings?
Timeout and keep alive settings.
final
tlsSettings TlsSettings?
TLS settings.
final
userAgent String?
A convenient way to set the User-Agent header. By default, there is no User-Agent header.
final

Methods

copyWith({String? baseUrl = _keepBaseUrl, CookieSettings? cookieSettings = _keepCookieSettings, HttpVersionPref? httpVersionPref, TimeoutSettings? timeoutSettings = _keepTimeoutSettings, bool? throwOnStatusCode, ProxySettings? proxySettings = _keepProxySettings, RedirectSettings? redirectSettings = _keepRedirectSettings, TlsSettings? tlsSettings = _keepTlsSettings, DnsSettings? dnsSettings = _keepDnsSettings, String? userAgent = _keepUserAgent}) ClientSettings
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