1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-26 06:57:43 +02:00

files: 304 Not Modified responses omit Content-Length header (#2453)

This commit is contained in:
Rob Ede
2021-11-19 14:04:12 +00:00
committed by GitHub
parent 56ee97f722
commit 194a691537
11 changed files with 145 additions and 35 deletions

View File

@ -273,12 +273,12 @@ impl TestServer {
self.client.headers()
}
/// Gracefully stop HTTP server.
/// Stop HTTP server.
///
/// Waits for spawned `Server` and `System` to shutdown gracefully.
/// Waits for spawned `Server` and `System` to (force) shutdown.
pub async fn stop(&mut self) {
// signal server to stop
self.server.stop(true).await;
self.server.stop(false).await;
// also signal system to stop
// though this is handled by `ServerBuilder::exit_system` too