Skip to content

Commit 8334695

Browse files
committed
Functional HTTP Client!
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.
1 parent 83f17fd commit 8334695

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

boost/network/protocol/http/client/connection/async_normal.ipp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ struct http_async_connection_pimpl : boost::enable_shared_from_this<http_async_c
9999
accessor.set_headers_promise(r, this->headers_promise);
100100
accessor.set_body_promise(r, this->body_promise);
101101
accessor.set_version_promise(r, this->version_promise);
102+
accessor.set_status_promise(r, this->status_promise);
102103
accessor.set_status_message_promise(r, this->status_message_promise);
103104
BOOST_NETWORK_MESSAGE("futures and promises lined up.");
104105
}

libs/network/test/http/client_get_test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ BOOST_AUTO_TEST_CASE(http_client_get_test) {
2525
response.get_status(status_);
2626
response.get_status_message(status_message_);
2727
BOOST_CHECK_EQUAL ( version_.substr(0,7), "HTTP/1.");
28-
BOOST_CHECK_EQUAL ( status_, 200u );
29-
BOOST_CHECK_EQUAL ( status_message_, std::string("OK") );
28+
BOOST_CHECK_EQUAL ( status_, 302u );
29+
BOOST_CHECK_EQUAL ( status_message_, std::string("Found") );
3030
}
3131

3232
#ifdef BOOST_NETWORK_ENABLE_HTTPS

0 commit comments

Comments
 (0)