Update middleware.md (#2967)

This commit is contained in:
Flamenco 2024-10-09 06:22:06 -04:00 committed by GitHub
parent 5512b5b91f
commit 19b99ea917
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -190,7 +190,7 @@ You should use these when
## `tower::Service` and `Pin<Box<dyn Future>>` ## `tower::Service` and `Pin<Box<dyn Future>>`
For maximum control (and a more low level API) you can write you own middleware For maximum control (and a more low level API) you can write your own middleware
by implementing [`tower::Service`]: by implementing [`tower::Service`]:
Use [`tower::Service`] with `Pin<Box<dyn Future>>` to write your middleware when: Use [`tower::Service`] with `Pin<Box<dyn Future>>` to write your middleware when: