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

Library prelude to bring in the most used structures and traits

Structs

Holder struct that contains a next method in the pipeline

Pipeline builder structure that holds the list of added middleware as well as providing ways of interacting with that list

Enums

Traits

Context type that is passed to each registered middleware function