We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad96b12 commit fd0ab0fCopy full SHA for fd0ab0f
1 file changed
README.md
@@ -77,10 +77,13 @@ conn->AppendHeader("X-MY-HEADER", "foo")
77
conn->SetCAInfoFilePath("/etc/custom-ca.crt")
78
79
RestClient::Response r = conn->get("/get")
80
-RestClient::Response r = conn->post("/post", "text/json", "{\"foo\": \"bla\"}")
81
-RestClient::Response r = conn->put("/put", "text/json", "{\"foo\": \"bla\"}")
82
RestClient::Response r = conn->del("/delete")
83
+// set different content header for POST and PUT
+conn->AppendHeader("Content-Type", "text/json")
84
+RestClient::Response r = conn->post("/post", "{\"foo\": \"bla\"}")
85
+RestClient::Response r = conn->put("/put", "text/json", "{\"foo\": \"bla\"}")
86
+
87
// deinit RestClient. After calling this you have to call RestClient::init()
88
// again before you can use it
89
RestClient::disable();
0 commit comments