mirror of
https://github.com/actix/actix-extras.git
synced 2025-06-25 09:59:21 +02:00
deprecate HttpServer::no_http2(), update changes
This commit is contained in:
@ -181,6 +181,8 @@ where
|
||||
}
|
||||
|
||||
/// Disable `HTTP/2` support
|
||||
#[doc(hidden)]
|
||||
#[deprecated(since = "0.7.4", note = "please use acceptor service with proper ServerFlags parama")]
|
||||
pub fn no_http2(mut self) -> Self {
|
||||
self.no_http2 = true;
|
||||
self
|
||||
@ -655,6 +657,7 @@ impl<H: IntoHttpHandler> Handler<StopServer> for HttpServer<H> {
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
fut::ok(())
|
||||
}),
|
||||
);
|
||||
@ -672,4 +675,4 @@ impl<H: IntoHttpHandler> Handler<StopServer> for HttpServer<H> {
|
||||
Response::reply(Ok(()))
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user