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:
Sean McArthur
2015-06-19 10:35:03 -07:00
parent e689f20376
commit 53bba6eb7f
17 changed files with 355 additions and 391 deletions

View File

@@ -41,7 +41,7 @@ fn hello(_: Request, res: Response<Fresh>) {
}
fn main() {
Server::http(hello).listen("127.0.0.1:3000").unwrap();
Server::http("127.0.0.1:3000").unwrap().handle(hello);
}
```