(&self)
| 225 | } |
| 226 | |
| 227 | fn get_header(&self) -> HashMap<String, Value> { |
| 228 | self.request |
| 229 | .headers() |
| 230 | .iter() |
| 231 | .map(|(name, value)| { |
| 232 | ( |
| 233 | name.as_str().to_owned(), |
| 234 | Value::String(value.to_str().unwrap().to_owned()), |
| 235 | ) |
| 236 | }) |
| 237 | .collect() |
| 238 | } |
| 239 | } |
| 240 | |
| 241 | impl Future for RequestProcessor { |