You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/middleware-roundtripper/README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,12 @@
4
4
5
5
The purpose of this example is to demonstrate a few common usecases for HTTP server middlewares and client-side round trippers.
6
6
7
-
It provides wrapper types to string together nested/sequential middlewares and roundtrippers. This makes it easy to show how different orders affect the effectiveness of these functions.
7
+
It provides wrapper types to string together nested/sequential middlewares and roundtrippers. This makes it easy to show how different ordering impacts the effectiveness of these functions.
8
8
9
9
I encourage you to take a look at the tests which will demonstrate the different correct and incorrect uses of these.
10
10
11
11
Some incorrect uses aren't shown, like running a middleware that could panic before applying the RecoverMiddleware.
12
12
13
-
- If logging or caching middleware is applied before sanitizing auth details, the auth details are logged/cached
13
+
- If caching middleware is applied before sanitizing auth details, the auth details are cached
14
14
- If the logging or caching round tripper runs after applying auth to the request, the auth details are logged/cached
15
15
- If a server-side cache middleware is used before checking authentication, responses could be leaked to unauthorized requests
0 commit comments