Simple middleware example? #2557
-
Issue Type
DescriptionAre there any complete, simple middleware service examples out there (e.g., a simple request logger)? I've read the middleware section of the Service docs here and my head is still spinning as to add a simple middleware service then pass it to a request handler. |
Beta Was this translation helpful? Give feedback.
Answered by
seanmonstar
May 19, 2021
Replies: 1 comment 1 reply
-
There's tower-http. It's preparing its first major release, but browsing the code may be helpful. It's essentially a repository of useful HTTP middleware for |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
seanmonstar
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There's tower-http. It's preparing its first major release, but browsing the code may be helpful. It's essentially a repository of useful HTTP middleware for
Service
.