pub fn dns_resolve(self, map: ResolveMap) -> Self {
        // Similar to the dns_cache option, this operation actually affects all
        // requests in a multi handle so we do not expose it per-request to
        // avoid confusing behavior.
        self.configure(map)
    }
/// Set a mapping of DNS resolve overrides.
///
/// Entries in the given map will be used first before using the default DNS
/// resolver for host+port pairs.
///
/// Note that DNS resolving is only performed when establishing a new
///
/// # Examples
///
/// ```
/// # use isahc::config::ResolveMap;
/// # use isahc::prelude::*;
/// # use std::net::IpAddr;
/// #
/// let client = HttpClient::builder()
///     .dns_resolve(ResolveMap::new()
///         // Send requests for example.org on port 80 to 127.0.0.1.
///         .add("example.org", 80, [127, 0, 0, 1]))
///     .build()?;
/// # Ok::<(), Box<dyn std::error::Error>>(())
/// ```
Set a mapping of DNS resolve overrides.
Entries in the given map will be used first before using the default DNS
resolver for host+port pairs.

Note that DNS resolving is only performed when establishing a new
Set a mapping of DNS resolve overrides . Entries in the given map will be used first before using the default DNS resolver for host + port pairs . Note that DNS resolving is only performed when establishing a new
pub fn dns_resolve(self, map: ResolveMap) -> Self {
        // Similar to the dns_cache option, this operation actually affects all
        // requests in a multi handle so we do not expose it per-request to
        // avoid confusing behavior.
        self.configure(map)
    }
pub fn dns_resolve ( self , map : ResolveMap ) -> Self { // Similar to the dns_cache option, this operation actually affects all // requests in a multi handle so we do not expose it per-request to // avoid confusing behavior. self . configure ( map ) }
Set a mapping of DNS resolve overrides.
Set a mapping of DNS resolve overrides .
self
map
ResolveMap
self
map
ResolveMap
examples
None
use isahc::config::resolvemap;
None
use isahc::prelude::*;
None
use std::net::ipaddr;
let client = HttpClient::builder()
.dns_resolve(ResolveMap::new()
Send requests for example.org on port 80 to 127.0.0.1.
let client = HttpClient :: builder () . dns_resolve ( ResolveMap :: new () Send requests for example . org on port 80 to 127 . 0 . 0 . 1 .
ok::<(), box<dyn std::error::error>>(())
None