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:
		| @@ -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] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user