Fix example in readme.
This commit is contained in:
parent
c795d06a7f
commit
3e04970659
13
README.adoc
13
README.adoc
|
@ -17,12 +17,15 @@ the other wrappers are either incomplete or unmaintained as well.
|
|||
|
||||
namespace cw = curl_wrapper;
|
||||
|
||||
cw::CURLWrapper curl;
|
||||
const auto answer{curl.make_http_request(cw::http_method::GET,
|
||||
"http://example.com/")};
|
||||
if (answer)
|
||||
int main()
|
||||
{
|
||||
std::cout << answer;
|
||||
cw::CURLWrapper curl;
|
||||
const auto answer{curl.make_http_request(cw::http_method::GET,
|
||||
"http://example.com/")};
|
||||
if (answer)
|
||||
{
|
||||
std::cout << answer;
|
||||
}
|
||||
}
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user