(res: &Response<B>)
| 725 | } |
| 726 | |
| 727 | fn grpc_status_from_response<B>(res: &Response<B>) -> String { |
| 728 | res.headers() |
| 729 | .get("grpc-status") |
| 730 | .and_then(|v| v.to_str().ok()) |
| 731 | .map_or_else(|| "0".to_string(), ToString::to_string) |
| 732 | } |
| 733 | |
| 734 | fn normalize_http_path(path: &str) -> &'static str { |
| 735 | match path { |