Skip to content

Commit

Permalink
Functional HTTP Client!
Browse files Browse the repository at this point in the history
So, now this particular non-HTTPS implementation is doing what it's
supposed to be doing. There's still a bug in the HTTP implementation
which needs some squashing, but I'm proud to announce that we're now in
(almost) feature parity with the 0.9.3 implementation, *without the
header-only dogma*.

There's still quite a lot to do, but this is a milestone commit for the
refactoring effort.
  • Loading branch information
deanberris committed Mar 16, 2012
1 parent 83f17fd commit 8334695
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Expand Up @@ -99,6 +99,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
accessor.set_headers_promise(r, this->headers_promise);
accessor.set_body_promise(r, this->body_promise);
accessor.set_version_promise(r, this->version_promise);
accessor.set_status_promise(r, this->status_promise);
accessor.set_status_message_promise(r, this->status_message_promise);
BOOST_NETWORK_MESSAGE("futures and promises lined up.");
}
Expand Down
4 changes: 2 additions & 2 deletions libs/network/test/http/client_get_test.cpp
Expand Up @@ -25,8 +25,8 @@ BOOST_AUTO_TEST_CASE(http_client_get_test) {
response.get_status(status_);
response.get_status_message(status_message_);
BOOST_CHECK_EQUAL ( version_.substr(0,7), "HTTP/1.");
BOOST_CHECK_EQUAL ( status_, 200u );
BOOST_CHECK_EQUAL ( status_message_, std::string("OK") );
BOOST_CHECK_EQUAL ( status_, 302u );
BOOST_CHECK_EQUAL ( status_message_, std::string("Found") );
}

#ifdef BOOST_NETWORK_ENABLE_HTTPS
Expand Down

0 comments on commit 8334695

Please sign in to comment.