Trait net::protocols::ProtocolHandler
source · pub trait ProtocolHandler: Send + Sync {
// Required method
fn load(
&self,
request: &mut Request,
done_chan: &mut DoneChannel,
context: &FetchContext,
) -> Pin<Box<dyn Future<Output = Response> + Send>>;
}