mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-15 01:08:27 +00:00
parent
e46cc54d13
commit
6c5d0b2a18
8 changed files with 255 additions and 103 deletions
|
@ -18,7 +18,7 @@ int main(void)
|
|||
httplib::Client cli("localhost", 8080);
|
||||
#endif
|
||||
|
||||
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