Skip to main content

finalize

Function finalize 

Source
pub fn finalize<S>(router: Router<S>, options: HttpOptions) -> Router<S>
where S: Clone + Send + Sync + 'static,
Expand description

Finalizes a public router with standard 404/405 envelopes and HTTP layers.

Call this once after defining and merging all product routes. Unmatched paths return not_found, unsupported methods return method_not_allowed, and both responses include the request ID installed by the lifecycle middleware.