(res: &Response<B>)
| 1398 | } |
| 1399 | |
| 1400 | fn grpc_status<B>(res: &Response<B>) -> Option<String> { |
| 1401 | res.headers() |
| 1402 | .get("grpc-status") |
| 1403 | .map(|v| v.to_str().unwrap().to_string()) |
| 1404 | } |
| 1405 | |
| 1406 | fn user_principal(subject: &str) -> Principal { |
| 1407 | Principal::User(UserPrincipal { |