Skip to main content

Module middleware

Module middleware 

Source
Expand description

Composition of HTTP middleware pipelines.

This module is deliberately free of any manifest, lockfile, trigger or executor types: it operates purely on component bytes plus the capability configuration each middleware is allowed to inherit, so that any embedding can reuse it regardless of how it discovers and loads middleware.

Structs§

Middleware
A middleware component to be composed into a pipeline.

Constants§

MIDDLEWARE_HANDLER_INTERFACE
The interface an HTTP middleware component both imports (to forward a request to the next component in the pipeline) and exports (to receive a request from the previous one).

Functions§

compose_middleware_pipeline
Composes middlewares into a pipeline in front of the primary component.