Skip to content

Commit 9a801fe

Browse files
authored
Merge pull request #52 from schnittstabil/fix-remove-server-prefix
Fix middleware interface name (remove `Server` prefix)
2 parents 4ceaa1c + 382bda0 commit 9a801fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ being passed implements a middleware signature, which reduces runtime safety.
222222

223223
### 5.1 Middleware Design
224224

225-
The `ServerMiddlewareInterface` defines a single method that accepts a server
225+
The `MiddlewareInterface` defines a single method that accepts a server
226226
request and a delegate and must return a response. The middleware may:
227227

228228
- Evolve the request before passing it to the delegate to execute the next
@@ -265,7 +265,7 @@ additional information._
265265

266266
The `DelegateInterface` defines a single method that accepts a request and
267267
returns a response. The delegate interface must be implemented by any middleware
268-
dispatcher that uses middleware implementing `ServerMiddlewareInterface`.
268+
dispatcher that uses middleware implementing `MiddlewareInterface`.
269269

270270
#### Why isn't the delegate a `callable`?
271271

0 commit comments

Comments
 (0)