(config: &RouterConfig)
| 48 | } |
| 49 | |
| 50 | pub fn from_config(config: &RouterConfig) -> Result<Self, RouterError> { |
| 51 | let resolved = config.resolve_routes()?; |
| 52 | let mut router = Self::new()?; |
| 53 | router.routes = resolved; |
| 54 | Ok(router) |
| 55 | } |
| 56 | |
| 57 | /// Proxy a raw HTTP request to the first compatible route from `candidates`. |
| 58 | /// |
nothing calls this directly
no test coverage detected