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:
parent
f7b22dfdc0
commit
cb31379c10
@ -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>
|
Loading…
Reference in New Issue
Block a user