Skip to content

Commit c70be84

Browse files
Correct the type names used in LoggingMiddleware example README (#467)
### Motivation Each of our examples includes a covering README. The README for the logging middleware example had some comments about the type names that were inaccurate. ### Modifications Fix the commentary in the logging middleware example README. ### Result Fixed the commentary in the logging middleware example README. ### Test Plan None. --------- Co-authored-by: Honza Dvorsky <[email protected]>
1 parent fdecd12 commit c70be84

File tree

1 file changed

+3
-6
lines changed
  • Examples/logging-middleware-swift-log-example

1 file changed

+3
-6
lines changed

Examples/logging-middleware-swift-log-example/README.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ that use `swift-log` to log requests and responses.
88
## Overview
99

1010
This example extends the [hello-world-urlsession-client-example](../hello-world-urlsession-client-example)
11-
with a new target, `LoggingMiddleware`, which is then used when creating
12-
the `Client`.
13-
14-
The `LoggingMiddleware` provides two types:
15-
- `LoggingClientMiddleware`, which implements the `OpenAPIRuntime.ClientMiddleware` protocol.
16-
- `LoggingServerMiddleware`, which implements the `OpenAPIRuntime.ServerMiddleware` protocol.
11+
with a new target, `LoggingMiddleware`, which can be used when creating
12+
a `Client` or a `Server` because it conforms to both the `ClientMiddleware` and
13+
`ServerMiddleware` protocols from the `OpenAPIRuntime` library.
1714

1815
Because request and response bodies support streaming and can be arbitrarily
1916
large, the middleware is configured with a logging policy; one of:

0 commit comments

Comments
 (0)