summary refs log tree commit diff
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-11-24 19:50:43 +0300
committerNakidai <nakidai@disroot.org>2024-11-24 19:50:43 +0300
commit1e4d1e050267c1cd4cf7104fd00f20b9c4962bbb (patch)
treec5ea9282819d66f8c3f38dbc93ff5882b706d9c6
parent786472f41bc2a7db3bd271fccaaff57fc74b6989 (diff)
downloadlibhttpc-1e4d1e050267c1cd4cf7104fd00f20b9c4962bbb.tar.gz
libhttpc-1e4d1e050267c1cd4cf7104fd00f20b9c4962bbb.zip
Add notice abut response in dumpResponse
-rw-r--r--include/libhttpc.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/libhttpc.h b/include/libhttpc.h
index 6160d21..e64361c 100644
--- a/include/libhttpc.h
+++ b/include/libhttpc.h
@@ -255,6 +255,12 @@ struct LibHTTPC_Request *LibHTTPC_loadRequest(struct LibHTTPC_Request *request_b
  * Construct C-String with resopnse that can be sent to client from
  * LibHTTPC_Response struct
  * @param[in]  response Pointer to response
+ *
+ *                      if (response.version == NULL) then it will be set to "HTTP/1.1"
+ *
+ *                      if (response.status == 0) then it will be set to LibHTTPC_Status_OK
+ *
+ *                      if (response.phrase == NULL) then it will be set to LibHTTPC_dumpStatus(response.status)
  * @param[out] buf      Pointer to buffer where to save formatted response
  * @param      buf_len  Size of buf
  */