Skip to content

Commit a87c5dc

Browse files
authored
fix: link ref in middleware (hyperium#129)
1 parent 2d3bfe3 commit a87c5dc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

_stable/server/middleware.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ title: Getting Started with a Server Middleware
33
layout: guide
44
---
55

6-
As [Upgrade](upgrading) mentioned, hyper v1 does not depend on tower for the `Service` trait. When we want to add tower-like middleware, there are 2 kinds of approach to make it.
6+
As [Upgrade][upgrading] mentioned, hyper v1 does not depend on tower for the `Service` trait. When we want to add tower-like middleware, there are 2 kinds of approach to make it.
77

8-
Let's create a Logger middleware in [hello-world server](hello-world) for instance:
8+
Let's create a Logger middleware in [hello-world server][hello-world] for instance:
99

1010
Add tower dependency first
1111

@@ -122,7 +122,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
122122

123123
## Option 2: use hyper TowerToHyperService trait
124124

125-
[hyper_util::service::TowerToHyperService](adapter-trait) trait is an adapter to convert tower Service to hyper Service.
125+
[hyper_util::service::TowerToHyperService][adapter-trait] trait is an adapter to convert tower Service to hyper Service.
126126

127127
Now implement a tower Logger middleware
128128

0 commit comments

Comments
 (0)