mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
Refactoring. Removed some client methods.
This commit is contained in:
parent
3c8c835489
commit
6062ea592b
5 changed files with 145 additions and 197 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue