1
0
mirror of https://github.com/actix/actix-website synced 2024-11-23 16:31:08 +01:00

renames file to be more discoverable.

This commit is contained in:
Cameron Dershem 2019-06-15 17:00:15 -04:00
parent f7b22dfdc0
commit cb31379c10

View File

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