(&self)
| 156 | impl AsRef<[u8]> for Body { |
| 157 | #[inline] |
| 158 | fn as_ref(&self) -> &[u8] { |
| 159 | match self { |
| 160 | Body::Empty => &[], |
| 161 | Body::Text(ref bytes) => bytes.as_ref(), |
| 162 | Body::Binary(ref bytes) => bytes.as_ref(), |
| 163 | } |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | impl Clone for Body { |
no outgoing calls
no test coverage detected