pub use apx_core::http_signatures::create::HttpSigner;
pub struct FederationAgent {
pub user_agent: Option<String>,
pub ssrf_protection_enabled: bool,
pub response_size_limit: usize,
pub fetcher_timeout: u64,
pub deliverer_timeout: u64,
pub proxy_url: Option<String>,
pub onion_proxy_url: Option<String>,
pub i2p_proxy_url: Option<String>,
pub signer: Option<HttpSigner>,
pub rfc9421_enabled: bool,
}
impl Default for FederationAgent {
fn default() -> Self {
Self {
user_agent: None,
ssrf_protection_enabled: true,
response_size_limit: 2_000_000,
fetcher_timeout: 10,
deliverer_timeout: 10,
proxy_url: None,
onion_proxy_url: None,
i2p_proxy_url: None,
signer: None,
rfc9421_enabled: false,
}
}
}