http-client icon indicating copy to clipboard operation
http-client copied to clipboard

Merge http-client-tls into http-client

Open domenkozar opened this issue 6 years ago • 4 comments

I know it comes with some heavy dependencies, but the good news is 80% of worldwide internet uses TLS and those numbers are only going up.

Switching between two managers is a constant pain and I think it would improve getting started experience with http-client.

domenkozar avatar Feb 22 '19 07:02 domenkozar

The purpose is to allow choice of backends. I don't know what pain you're referring to with "switching," you should only use one Manager.

snoyberg avatar Feb 22 '19 08:02 snoyberg

Backends could still be pluggable, just that default would be TLS supported. I see no reason why the current default could be used if someone wants to skip LTS in those 20% of use cases.

domenkozar avatar Feb 22 '19 11:02 domenkozar

That would mean if I want to use http-client-openssl, I would still need to compile the whole tls stack as well. ;-(

juhp avatar Aug 08 '20 09:08 juhp

Perhaps a better approach could be to let http-client-tls re-export http-client, or something along those lines? Not sure though

juhp avatar Aug 08 '20 10:08 juhp