Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用原生roundtrip实现https client #137

Merged
merged 1 commit into from
Nov 5, 2021
Merged

Conversation

zglzglak47
Copy link

使用SimpleRoundTripper自己实现transport无法处理http在chunk模式下的一些逻辑,实际测试body较长时会出现read response body error。 直接使用原生http.Transport中的DialTLSContext(要求golang1.14),可以只替换http中的tls conn构造,不需自行实现RT。

@Trisia
Copy link
Contributor

Trisia commented Nov 4, 2021

Transport.Dial 现在已经过时,建议使用DialContext代替,是否调整一下符合golang的推荐建议。

@czdsdo czdsdo merged commit fdaa5ff into tjfoc:master Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants