Crate libmw

Source
Expand description

Library for constructing a pipeline of middleware functions that have the option to call the next in the chain if they so desire before returning back to the previous function call.

This allows for the programmer to perform work on the given context both before and after invoking the next function in the chain.

Modules§

prelude
Library prelude to bring in the most used structures and traits

Structs§

Pipeline
Holder struct that contains a next method in the pipeline
PipelineBuilder
Pipeline builder structure that holds the list of added middleware as well as providing ways of interacting with that list

Enums§

PipelineError
Error

Traits§

PipelineContext
Context type that is passed to each registered middleware function