feat(ssl): redesign SSL usage
BREAKING CHANGE: Server::https was changed to allow any implementation of Ssl. Server in general was also changed. HttpConnector no longer uses SSL; using HttpsConnector instead.
This commit is contained in:
@@ -12,7 +12,7 @@ fn hello(_: Request, res: Response) {
|
||||
|
||||
fn main() {
|
||||
env_logger::init().unwrap();
|
||||
let _listening = hyper::Server::http(hello)
|
||||
.listen("127.0.0.1:3000").unwrap();
|
||||
let _listening = hyper::Server::http("127.0.0.1:3000").unwrap()
|
||||
.handle(hello);
|
||||
println!("Listening on http://127.0.0.1:3000");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user