Apply clangformat

This commit is contained in:
Yuji Hirose 2019-04-11 08:13:31 -04:00
parent a91a0b7dbf
commit 5d082f1da4
6 changed files with 2833 additions and 2970 deletions

View file

@ -10,22 +10,21 @@
using namespace std;
int main(void)
{
int main(void) {
#ifdef CPPHTTPLIB_OPENSSL_SUPPORT
httplib::SSLClient cli("localhost", 8080);
httplib::SSLClient cli("localhost", 8080);
#else
httplib::Client cli("localhost", 8080);
httplib::Client cli("localhost", 8080);
#endif
auto res = cli.Get("/hi");
if (res) {
cout << res->status << endl;
cout << res->get_header_value("Content-Type") << endl;
cout << res->body << endl;
}
auto res = cli.Get("/hi");
if (res) {
cout << res->status << endl;
cout << res->get_header_value("Content-Type") << endl;
cout << res->body << endl;
}
return 0;
return 0;
}
// vim: et ts=4 sw=4 cin cino={1s ff=unix