Skip to content

Latest commit

 

History

History
20 lines (17 loc) · 540 Bytes

README.md

File metadata and controls

20 lines (17 loc) · 540 Bytes

http

auto str = "https://yobit.net/api/3/ticker/ltc_btc";
std::cout << http::get(str, "some data").to_string() << std::endl;
std::cout << http::post(str, "some data").to_string() << std::endl;
resp = http::upload_files(upload_url, { http::File::from_uri("file", "file.gif", file_url) });
http::Request req;
req.method = "GET";
req.uri = http::Uri("https://yobit.net/api/3/ticker/ltc_btc");
req.headers["Hello"] = "World!";
req.body = "Some data";

std::cout << http::sendRequest(req).to_string();