File tree Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Expand file tree Collapse file tree 2 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -116,16 +116,6 @@ impl Request {
116
116
self . headers . get_mut ( name)
117
117
}
118
118
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
-
129
119
/// Remove a header.
130
120
pub fn remove_header ( & mut self , name : & HeaderName ) -> Option < Vec < HeaderValue > > {
131
121
self . headers . remove ( name)
Original file line number Diff line number Diff line change @@ -37,16 +37,6 @@ impl Response {
37
37
self . status
38
38
}
39
39
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
-
50
40
/// Get a mutable reference to a header.
51
41
pub fn header_mut ( & mut self , name : & HeaderName ) -> Option < & mut Vec < HeaderValue > > {
52
42
self . headers . get_mut ( name)
You can’t perform that action at this time.
0 commit comments