Skip to content

Refactored HTTP client v2. #476

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

Merged
merged 17 commits into from
Jan 2, 2015
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Removed ssl_connection from client.
  • Loading branch information
glynos committed Sep 20, 2014
commit 1bc435b5c7d3b77f62675d71cd8324525656a3fa
8 changes: 1 addition & 7 deletions http/src/http/v2/client/client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -346,13 +346,7 @@ std::future<response> client::execute(request req, request_options options) {
}
else {
// TODO factory based on HTTP or HTTPS
if (req.is_https()) {
connection = std::make_shared<client_connection::ssl_connection>(pimpl_->io_service_,
pimpl_->options_);
}
else {
connection = std::make_shared<client_connection::normal_connection>(pimpl_->io_service_);
}
connection = std::make_shared<client_connection::normal_connection>(pimpl_->io_service_);
}
return pimpl_->execute(std::make_shared<request_helper>(connection, req, options));
}
Expand Down