Fix example in readme.

This commit is contained in:
tastytea 2020-11-08 15:57:54 +01:00
parent c795d06a7f
commit 3e04970659
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 8 additions and 5 deletions

View File

@ -17,6 +17,8 @@ the other wrappers are either incomplete or unmaintained as well.
namespace cw = curl_wrapper;
int main()
{
cw::CURLWrapper curl;
const auto answer{curl.make_http_request(cw::http_method::GET,
"http://example.com/")};
@ -24,6 +26,7 @@ if (answer)
{
std::cout << answer;
}
}
--------------------------------------------------------------------------------
== Use with CMake