浏览代码

Update README

yhirose 6 年之前
父节点
当前提交
4f237af813
共有 1 个文件被更改,包括 1 次插入10 次删除
  1. 1 10
      README.md

+ 1 - 10
README.md

@@ -30,7 +30,7 @@ int main(void)
     });
     });
 
 
     svr.Get("/stop", [&](const Request& req, Response& res) {
     svr.Get("/stop", [&](const Request& req, Response& res) {
-      svr.stop();
+        svr.stop();
     });
     });
 
 
     svr.listen("localhost", 1234);
     svr.listen("localhost", 1234);
@@ -130,15 +130,6 @@ res = cli.Post("/post", "text", "text/plain");
 res = cli.Post("/person", "name=john1&note=coder", "application/x-www-form-urlencoded");
 res = cli.Post("/person", "name=john1&note=coder", "application/x-www-form-urlencoded");
 ```
 ```
 
 
-### POST with HTTP headers
-
-```c++
-  httplib::Headers headers = {
-    { "Content-Length", "5" }
-  };
-  auto res = cli.Post("/hi", headers, "hello", "text/plain");
-```
-
 ### POST with parameters
 ### POST with parameters
 
 
 ```c++
 ```c++