mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2025-05-17 02:08:29 +00:00
Updated README
This commit is contained in:
parent
8b1b31ac20
commit
ff5677ad19
1 changed files with 21 additions and 0 deletions
21
README.md
21
README.md
|
@ -365,6 +365,27 @@ httplib::Client cli("http://localhost:8080");
|
||||||
httplib::Client cli("https://localhost");
|
httplib::Client cli("https://localhost");
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Error code
|
||||||
|
|
||||||
|
Here is the list of errors from `Result::error()`.
|
||||||
|
|
||||||
|
```c++
|
||||||
|
enum Error {
|
||||||
|
Success = 0,
|
||||||
|
Unknown,
|
||||||
|
Connection,
|
||||||
|
BindIPAddress,
|
||||||
|
Read,
|
||||||
|
Write,
|
||||||
|
ExceedRedirectCount,
|
||||||
|
Canceled,
|
||||||
|
SSLConnection,
|
||||||
|
SSLLoadingCerts,
|
||||||
|
SSLServerVerification,
|
||||||
|
UnsupportedMultipartBoundaryChars
|
||||||
|
};
|
||||||
|
```
|
||||||
|
|
||||||
### GET with HTTP headers
|
### GET with HTTP headers
|
||||||
|
|
||||||
```c++
|
```c++
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue