Skip to main content

Module client

Module client 

Source

Re-exportsยง

use std::net::IpAddr; ๐Ÿ”’
use std::net::SocketAddr; ๐Ÿ”’
use std::ops::Deref; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use std::sync::LazyLock; ๐Ÿ”’
use std::time::Duration; ๐Ÿ”’
use bytes::Bytes; ๐Ÿ”’
use bytes::BytesMut; ๐Ÿ”’
use ipaddress::IPAddress; ๐Ÿ”’
use ipaddress::ipv4::from_u32 as ipv4_from_u32; ๐Ÿ”’
use reqwest::Client; ๐Ÿ”’
use reqwest::ClientBuilder; ๐Ÿ”’
use reqwest::Url; ๐Ÿ”’
use reqwest::dns::Resolve; ๐Ÿ”’
use reqwest::header::HeaderValue; ๐Ÿ”’
use reqwest::redirect::Policy; ๐Ÿ”’
use tuwunel_core::Config; ๐Ÿ”’
use tuwunel_core::Err; ๐Ÿ”’
use tuwunel_core::Result; ๐Ÿ”’
use tuwunel_core::config::proxy::ProxySnapshot; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::debug; ๐Ÿ”’
use tuwunel_core::either::Either; ๐Ÿ”’
use tuwunel_core::err; ๐Ÿ”’
use tuwunel_core::error::error_chain; ๐Ÿ”’
use tuwunel_core::implement; ๐Ÿ”’
use tuwunel_core::trace; ๐Ÿ”’
use tuwunel_core::utils::math::u64_from_usize_saturating; ๐Ÿ”’
use url::Host; ๐Ÿ”’
use crate::Services; ๐Ÿ”’
use crate::resolver::Validating; ๐Ÿ”’
use crate::service; ๐Ÿ”’

Structsยง

Clients
The outbound HTTP clients, one per purpose.
Federation
Separate DNS resolvers and connection pools for direct and SRV routes.
Service

Functionsยง

appservice_builder ๐Ÿ”’
appservice_resolver ๐Ÿ”’
base ๐Ÿ”’
builder_interface ๐Ÿ”’
guarded_redirect ๐Ÿ”’
ipaddress_from_std ๐Ÿ”’
make_appservice_unix ๐Ÿ”’
make_clients ๐Ÿ”’
make_federation ๐Ÿ”’
preview_builder ๐Ÿ”’
Construction for the URL preview client: bound to the configured interface and resolving through the CIDR-validating resolver.
probe_tls ๐Ÿ”’
Fails startup when an HTTPS client cannot be constructed.
read_response_capped
Prevents a remote peer from forcing unbounded response-body allocation.
valid_cidr_range_ip ๐Ÿ”’
Checks an address against a CIDR denylist.
valid_cidr_range_url ๐Ÿ”’

Type Aliasesยง

DisableEncoding ๐Ÿ”’