File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 11
22# CXX = clang++
3- CXXFLAGS = -std=c++14 -I.. -Wall -Wextra -pthread
3+ CXXFLAGS = -std=c++11 -I.. -Wall -Wextra -pthread
44
55OPENSSL_DIR = /usr/local/opt/openssl
66OPENSSL_SUPPORT = -DCPPHTTPLIB_OPENSSL_SUPPORT -I$(OPENSSL_DIR ) /include -L$(OPENSSL_DIR ) /lib -lssl -lcrypto
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ int main(void) {
1717 auto scheme_host_port = " http://localhost:8080" ;
1818#endif
1919
20- auto res = httplib::Client2 (scheme_host_port).Get (" /hi" );
20+ auto res = httplib::Client (scheme_host_port).Get (" /hi" );
2121
2222 if (res) {
2323 cout << res->status << endl;
Original file line number Diff line number Diff line change 1111using namespace std ;
1212
1313int main (void ) {
14- httplib::Client2 (" http://localhost:1234" )
14+ httplib::Client (" http://localhost:1234" )
1515 .Get (" /event1" , [&](const char *data, size_t data_length) {
1616 std::cout << string (data, data_length);
1717 return true ;
You can’t perform that action at this time.
0 commit comments