mirror of
https://github.com/actix/actix-website
synced 2025-02-17 10:13:31 +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…
x
Reference in New Issue
Block a user