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