Skip to main content

Module pipeline_builder

Module pipeline_builder 

Source
Expand description

Default middleware chain construction for the pipeline.

One call to build_default_pipeline produces the ordered chain from PIPELINE.md §Middleware. Order matters: schema ingest runs before CSP rewrite so the schema store captures the raw upstream CSP (cloud-backend contract), and envelope seal runs last so content-inspecting middlewares operate on McpBuffered before it becomes a sealed Raw.

Functions§

build_default_pipeline
Build the baseline pipeline. rewrite_config is shared with the middlewares that read it (CspRewrite, UrlMap) — swapping the inner Arc via .store() hot-reloads rules without restart.

Type Aliases§

ProxyPipeline
Concrete Pipeline instantiation used in production. Middleware traits are object-safe (Box<dyn …>), but the router and transport are generic parameters that want concrete types at construction.