feat(net): add set_ssl_verifier method to NetworkConnector trait

The commit includes an implementation of the new trait method for all
existing trait impls.

BREAKING CHANGE: Adding a new required method to a public trait is a
breaking change.
This commit is contained in:
Marko Lalic
2015-05-07 18:54:54 +02:00
parent 38f40c7f6a
commit a5d632b6ea
5 changed files with 86 additions and 5 deletions

View File

@@ -8,7 +8,7 @@ use std::fmt;
use std::io::{self, Read, Write, Cursor};
use std::net::SocketAddr;
use hyper::net;
use hyper::net::{self, ContextVerifier};
static README: &'static [u8] = include_bytes!("../README.md");
@@ -83,6 +83,9 @@ impl net::NetworkConnector for MockConnector {
Ok(MockStream::new())
}
fn set_ssl_verifier(&mut self, _verifier: ContextVerifier) {
// pass
}
}
#[bench]