From 57f251d76608800a1879c3397cbb5f3223a029a8 Mon Sep 17 00:00:00 2001 From: Jacob Hoffman-Andrews Date: Sat, 5 Dec 2020 12:01:56 -0800 Subject: [PATCH] Remove Response::status_line. (#263) The necessary functionality is available via status_text, and removing this method means we have more flexibility in our internal storage. --- src/response.rs | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/response.rs b/src/response.rs index 1906995..bb68527 100644 --- a/src/response.rs +++ b/src/response.rs @@ -94,11 +94,6 @@ impl Response { self.url.as_ref().map(|s| &s[..]).unwrap_or("") } - /// The entire status line like: `HTTP/1.1 200 OK` - pub fn status_line(&self) -> &str { - self.status_line.as_str() - } - /// The http version: `HTTP/1.1` pub fn http_version(&self) -> &str { &self.status_line.as_str()[0..self.index.http_version]