1
0
mirror of https://github.com/actix/actix-website synced 2025-06-27 15:39:02 +02:00

remove outdated info about force closing connections

This commit is contained in:
Rob Ede
2022-03-05 23:54:23 +00:00
parent 91d61f5be6
commit f504c65862
3 changed files with 2 additions and 20 deletions

View File

@ -1,14 +0,0 @@
// <example>
use actix_web::{http, HttpRequest, HttpResponse};
async fn index(req: HttpRequest) -> HttpResponse {
HttpResponse::Ok()
.connection_type(http::ConnectionType::Close) // <- Close connection
.force_close() // <- Alternative method
.finish()
}
// </example>
// ConnectionType::Close
// ConnectionType::KeepAlive
// ConnectionType::Upgrade

View File

@ -1,5 +1,4 @@
pub mod keep_alive;
// pub mod keep_alive_tp;
pub mod signals;
pub mod ssl;
pub mod workers;