Closed newacorn closed 3 months ago
I like it. I think it makes the old method obsolete, but we can't remove them for backwards compatibility of course. So I think we should rewrite the old methods to use this new
Dialer
instead. What do you think?
You are correct;I agree with your point. I forgot about backward compatibility and deduplication. Next, I will try to rewrite the existing functions.
Thanks!
https://github.com/valyala/fasthttp/issues/1822 In this issue, I noticed that the existing implementation doesn't leverage fasthttp's dialer mechanism, so I created this pull request. At the same time, provide more comprehensive support for proxy environment variables and allow configuration of the fasthttp dialer. No tests were committed, and the logic is built on top of the existing fasthttpproxy foundation. I noticed that the original fasthttpproxy also didn't include any test code. The proxy address is not universal, but I did some local debugging and didn't find any issues.