Skip to content

0.11 devel docfix http response status #441

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 7 commits into from
Sep 8, 2014
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
Replaces tabs with spaces in HTTP client example.
  • Loading branch information
povilasb committed Sep 8, 2014
commit 7af29d51da42ea5864dab62fa13d3613e194c719
14 changes: 7 additions & 7 deletions libs/network/doc/examples/http/http_client.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@ Without further ado, the code to do this is as follows:
int main(int argc, char *argv[]) {
using namespace boost::network;

if (argc != 2) {
std::cout << "Usage: " << argv[0] << " [url]" << std::endl;
return 1;
if (argc != 2) {
std::cout << "Usage: " << argv[0] << " [url]" << std::endl;
return 1;
}

http::client client;
http::client::request request(argv[1]);
request << header("Connection", "close");
http::client::response response = client.get(request);
std::cout << body(response) << std::endl;
request << header("Connection", "close");
http::client::response response = client.get(request);
std::cout << body(response) << std::endl;

return 0;
return 0;
}

Running the example
Expand Down