mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 17:52:56 +01:00
rename close_connection to force_close
This commit is contained in:
parent
deac983bc7
commit
f100976ef0
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
* `ClientResponse::body()` does not consume response object.
|
* `ClientResponse::body()` does not consume response object.
|
||||||
|
|
||||||
|
* Renamed `ClientRequest::close_connection()` to `ClientRequest::force_close()`
|
||||||
|
|
||||||
|
|
||||||
## [0.1.0-alpha.2] - 2019-03-29
|
## [0.1.0-alpha.2] - 2019-03-29
|
||||||
|
|
||||||
|
@ -226,10 +226,10 @@ impl ClientRequest {
|
|||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Close connection instead of returning it back to connections pool.
|
/// Force close connection instead of returning it back to connections pool.
|
||||||
/// This setting affect only http/1 connections.
|
/// This setting affect only http/1 connections.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn close_connection(mut self) -> Self {
|
pub fn force_close(mut self) -> Self {
|
||||||
self.head.set_connection_type(ConnectionType::Close);
|
self.head.set_connection_type(ConnectionType::Close);
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user