twitchax / AspNetCore.Proxy

ASP.NET Core Proxies made easy.
MIT License
525 stars 83 forks source link

HTTPS support. #24

Closed RyanDrx closed 5 years ago

RyanDrx commented 5 years ago

If we want to use https for the call to the proxy server. Then we have to add an unnamed httpClient services.AddHttpClient("", c => and configure the certificate handler there.

Can we pass the name of the HttpClient name as proxy option?

twitchax commented 5 years ago

Hi @RyanDrx, this is a good idea. However, do you mean for the call to the proxy server, or the call to the proxied endpoint?

RyanDrx commented 5 years ago

Hi, thanks for the quick response. I mean the call to the proxied endpoint. From the client it would look like. Client => https://myapi/api/arg1 <=> https://otherApi/arg1

twitchax commented 5 years ago

Something like this?

https://github.com/twitchax/AspNetCore.Proxy/pull/25

RyanDrx commented 5 years ago

Exactly! Thanks

twitchax commented 5 years ago

Great!