mirror of
https://github.com/actix/actix-website
synced 2025-06-27 07:29:02 +02:00
remove outdated info about force closing connections
This commit is contained in:
@ -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
|
@ -1,5 +1,4 @@
|
||||
pub mod keep_alive;
|
||||
// pub mod keep_alive_tp;
|
||||
pub mod signals;
|
||||
pub mod ssl;
|
||||
pub mod workers;
|
||||
|
Reference in New Issue
Block a user