1
0
mirror of synced 2025-04-20 11:47:43 +03:00
This commit is contained in:
yhirose 2018-05-09 07:17:45 -04:00
parent 7c721b65fc
commit e6abebf989

View File

@ -114,7 +114,7 @@ res = cli.Post("/person", "name=john1&note=coder", "application/x-www-form-urlen
### POST with parameters ### POST with parameters
```c++ ```c++
httplib::Map params; httplib::Params params;
params["name"] = "john"; params["name"] = "john";
params["note"] = "coder"; params["note"] = "coder";
auto res = cli.Post("/post", params); auto res = cli.Post("/post", params);
@ -123,7 +123,7 @@ auto res = cli.Post("/post", params);
### PUT ### PUT
```c++ ```c++
res = cli.Post("/resource/foo", "text", "text/plain"); res = cli.Put("/resource/foo", "text", "text/plain");
``` ```
### DELETE ### DELETE