Open fabiante opened 1 year ago
I am unsure about how the parameter should work and if we want to call WithDynamicServerUrl
twice then, once for HTTP, once for HTTP.
There may also be the option to support proxies which often include the original protocol as header. This would allow to correctly determine the protocol even if the application is behind a reverse proxy which terminates SSL and forwards without SSL.
WithAddServerUrls implicitly adds two server urls, one for http, one for https.
https://github.com/DEXPRO-Solutions-GmbH/swaggerui/blob/0f4af9b0b2c4caa451328079be9d3602d1a50f62/handler.go#L68
WithAddServerUrls
toWithDynamicServerUrl
In Summary, let's change the method signature to:
I think the new name states more clearly what this function does.