Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8334695

Browse files
committed
Functional HTTP Client!
So, now this particular non-HTTPS implementation is doing what it'ssupposed to be doing. There's still a bug in the HTTP implementationwhich needs some squashing, but I'm proud to announce that we're now in(almost) feature parity with the 0.9.3 implementation, *without theheader-only dogma*.There's still quite a lot to do, but this is a milestone commit for therefactoring effort.
1 parent83f17fd commit8334695

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)

[8]ページ先頭

©2009-2025 Movatter.jp