Skip to content

Commit db13609

Browse files
remove headers and headers_mut
1 parent a3af23f commit db13609

File tree

2 files changed

+0
-20
lines changed

2 files changed

+0
-20
lines changed

src/request.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -116,16 +116,6 @@ impl Request {
116116
self.headers.get_mut(name)
117117
}
118118

119-
/// Get a reference to all headers.
120-
pub fn headers(&self) -> &headers::Headers {
121-
&self.headers
122-
}
123-
124-
/// Get a mutable reference to all headers.
125-
pub fn headers_mut(&mut self) -> &mut headers::Headers {
126-
&mut self.headers
127-
}
128-
129119
/// Remove a header.
130120
pub fn remove_header(&mut self, name: &HeaderName) -> Option<Vec<HeaderValue>> {
131121
self.headers.remove(name)

src/response.rs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,6 @@ impl Response {
3737
self.status
3838
}
3939

40-
/// Get a reference to all headers.
41-
pub fn headers(&self) -> &headers::Headers {
42-
&self.headers
43-
}
44-
45-
/// Get a mutable reference to all headers.
46-
pub fn headers_mut(&mut self) -> &mut headers::Headers {
47-
&mut self.headers
48-
}
49-
5040
/// Get a mutable reference to a header.
5141
pub fn header_mut(&mut self, name: &HeaderName) -> Option<&mut Vec<HeaderValue>> {
5242
self.headers.get_mut(name)

0 commit comments

Comments
 (0)