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

Implement http proxy task #378

Merged
merged 7 commits into from
May 20, 2021
Merged

Implement http proxy task #378

merged 7 commits into from
May 20, 2021

Conversation

kedixa
Copy link
Contributor

@kedixa kedixa commented May 20, 2021

we can use http proxy when visit http(s) server now.


using namespace protocol;

#define HTTP_KEEPALIVE_DEFAULT (60 * 1000)
#define HTTP_KEEPALIVE_MAX (300 * 1000)

static int __encode_auth(const char *p, std::string& auth)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个移动到下面吧。毕竟和非proxy的情况没有关系。


BIO_free_all(b64);
return 0;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

应该有个空行?

@@ -56,11 +123,11 @@ class ComplexHttpTask : public WFComplexClientTask<HttpRequest, HttpResponse>
virtual void init_failed();
virtual bool finish_once();

private:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

再写一次protected吧。

return false;
}

if(user_uri_.scheme && strcasecmp(user_uri_.scheme, "http") == 0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

格式问题。两个if后面的空格没了。

@kedixa
Copy link
Contributor Author

kedixa commented May 20, 2021

done

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.

2 participants