Refactoring. Removed some client methods.

This commit is contained in:
yhirose 2012-10-05 13:58:56 -04:00
parent 3c8c835489
commit 6062ea592b
5 changed files with 145 additions and 197 deletions

View file

@ -9,15 +9,12 @@
#include <iostream>
using namespace std;
using namespace httplib;
int main(void)
{
const char* hi = "/hi";
httplib::Client cli("localhost", 8080);
Client cli("localhost", 8080);
auto res = cli.get(hi);
auto res = cli.get("/hi");
if (res) {
cout << res->status << endl;
cout << res->get_header_value("Content-Type") << endl;