http-rs / http-rs/tide

Proposal: Introduce the notion of a middleware stack

Open
#73 11 comments 0 reactions 0 assignees View on GitHub
feature good first issue
Dominant language
Rust
Stars
5.1k
Forks
329
PR merge metrics
No merged PRs in 30d

Description

Currently, the type of a collection of middlewares is `Vec + Send + Sync>>`. I think it would make sense to introduce a proper `MiddlewareStack` type that itself implements `Middleware`. This allows better sharing of middleware instances and the way to address them, for example for debugging.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.