DomainFronting constructor

DomainFronting({
  1. DomainFrontingDomainLookup? dnsLookup,
  2. bool noIpSkip = true,
  3. bool manual = false,
})

dnsLookup: Handle domain name resolution.

noIpSkip: Skip DomainFronting if no ip is obtained, otherwise an exception will be thrown.

manual: Manual mode, you need to pass DomainFronting.auto or DomainFronting.ip in the request options to enable it. Set to false to enable all requests by default

Implementation

DomainFronting({
  DomainFrontingDomainLookup? dnsLookup,
  this.noIpSkip = true,
  this.manual = false,
}) {
  _dnsLookup = dnsLookup;
}