From f100976ef0d7309e88ef72e26165d02446fd0f65 Mon Sep 17 00:00:00 2001 From: Nikolay Kim Date: Tue, 2 Apr 2019 14:08:30 -0700 Subject: [PATCH] rename close_connection to force_close --- awc/CHANGES.md | 2 ++ awc/src/request.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/awc/CHANGES.md b/awc/CHANGES.md index 4bc9fc0b1..a91b28bee 100644 --- a/awc/CHANGES.md +++ b/awc/CHANGES.md @@ -16,6 +16,8 @@ * `ClientResponse::body()` does not consume response object. +* Renamed `ClientRequest::close_connection()` to `ClientRequest::force_close()` + ## [0.1.0-alpha.2] - 2019-03-29 diff --git a/awc/src/request.rs b/awc/src/request.rs index 4e3ab47d6..b96b39e2f 100644 --- a/awc/src/request.rs +++ b/awc/src/request.rs @@ -226,10 +226,10 @@ impl ClientRequest { 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. #[inline] - pub fn close_connection(mut self) -> Self { + pub fn force_close(mut self) -> Self { self.head.set_connection_type(ConnectionType::Close); self }