swift-openapi-generator icon indicating copy to clipboard operation
swift-openapi-generator copied to clipboard

Consider the Client being generic over Transport/Middlewares

Open czechboy0 opened this issue 2 years ago • 0 comments

Might result in better performance as it'd avoid existentials in the transport and middlewares properties.

However, we also should keep in mind the use case where the exact transport and set of middlewares used at runtime is not known at build time (e.g. by adding a middleware dynamically based on an environment variable, choosing a transport based on an env var - testing vs live, etc).

czechboy0 avatar May 25 '23 10:05 czechboy0