pub trait DisallowedHostHandler: Send + Sync {
// Required method
fn handle_disallowed_host(&self, scheme: &str, authority: &str);
}Expand description
A trait for handling disallowed hosts
Required Methods§
Sourcefn handle_disallowed_host(&self, scheme: &str, authority: &str)
fn handle_disallowed_host(&self, scheme: &str, authority: &str)
Called when a host is disallowed
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".