ClientSetting class

Constructors

ClientSetting()

Properties

context SecurityContext?
The certificate provided by the server is checked using the trusted certificates set in the SecurityContext object. The default SecurityContext object contains a built-in set of trusted root certificates for well-known certificate authorities.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
onBadCertificate ↔ (bool Function(X509Certificate certificate)?)
onBadCertificate is an optional handler for unverifiable certificates. The handler receives the X509Certificate, and can inspect it and decide (or let the user decide) whether to accept the connection or not. The handler should return true to continue the SecureSocket connection.
getter/setter pair
proxy Uri?
Create clients with the given proxy setting. When it's set, all HTTP/2 traffic from Dio will go through the proxy tunnel. This setting uses Uri to correctly pass the scheme, address, and port of the proxy.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
validateCertificate ValidateCertificate?
Allows the user to decide if the response certificate is good. If this function is missing, then the certificate is allowed. This method is called only if both the SecurityContext and badCertificateCallback accept the certificate chain. Those methods evaluate the root or intermediate certificate, while validateCertificate evaluates the leaf certificate.
getter/setter pair

Methods

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