Update README.md (#1332)

Update error list. Introduce `httplib::to_string` in the example code.
This commit is contained in:
ZHANG Xiang 2022-07-25 18:48:52 +08:00 committed by GitHub
parent f0eb55b327
commit b1cc24b795
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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,
};
```