From b1cc24b795ddf59f3d4699ea9146312e743adbb5 Mon Sep 17 00:00:00 2001 From: ZHANG Xiang <60132264+ZXfkSIE@users.noreply.github.com> Date: Mon, 25 Jul 2022 18:48:52 +0800 Subject: [PATCH] Update README.md (#1332) Update error list. Introduce `httplib::to_string` in the example code. --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 36acd2a..6a4a9ce 100644 --- a/README.md +++ b/README.md @@ -443,7 +443,7 @@ int main(void) } } else { auto err = res.error(); - ... + std::cout << "HTTP error: " << httplib::to_string(err) << std::endl; } } ``` @@ -476,7 +476,9 @@ enum Error { SSLConnection, SSLLoadingCerts, SSLServerVerification, - UnsupportedMultipartBoundaryChars + UnsupportedMultipartBoundaryChars, + Compression, + ConnectionTimeout, }; ```