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

fix some broken links

closes #269
This commit is contained in:
Rob Ede
2023-02-03 14:11:14 -05:00
parent 7d15d13901
commit ac29615601
4 changed files with 6 additions and 7 deletions

View File

@ -94,7 +94,7 @@ Actix Web keeps connections open to wait for subsequent requests.
<CodeBlock example="server" file="keep_alive.rs" section="keep-alive" />
If the first option above is selected, then keep-alive is enabled for HTTP/1.1 requests if the response does not explicitly disallow it by, for example, setting the [connection type][httpconnectiontype] to `Close` or `Upgrade`. Force closing a connection can be done with [the `force_close()` method on `HttpResponseBuilder`](https://docs.rs/actix-web/4/actix_web/dev/struct.HttpResponseBuilder.html#method.force_close)
If the first option above is selected, then keep-alive is enabled for HTTP/1.1 requests if the response does not explicitly disallow it by, for example, setting the [connection type][httpconnectiontype] to `Close` or `Upgrade`. Force closing a connection can be done with [the `force_close()` method on `HttpResponseBuilder`](https://docs.rs/actix-web/4/actix_web/struct.HttpResponseBuilder.html#method.force_close)
> Keep-alive is **off** for HTTP/1.0 and is **on** for HTTP/1.1 and HTTP/2.0.
<CodeBlock example="server" file="keep_alive_tp.rs" section="example" />