about summary refs log tree commit diff
path: root/include/libhttpc.h
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2024-11-24 18:26:42 +0300
committerNakidai <nakidai@disroot.org>2024-11-24 18:26:42 +0300
commitc7d38eb85062c86c2ca6c411a8c805501a748e59 (patch)
treeaf841f2c4d8b0c6db7bdf6e7b062d3dfdb5408c5 /include/libhttpc.h
parentdb7553eda4ed2feefac4859f59f79ee8e3d20e3f (diff)
downloadlibhttpc-c7d38eb85062c86c2ca6c411a8c805501a748e59.tar.gz
libhttpc-c7d38eb85062c86c2ca6c411a8c805501a748e59.zip
QoL things
- Make response.status be LibHTTPC_Status
- Add defaults in LibHTTPC_dumpResponse
Diffstat (limited to 'include/libhttpc.h')
-rw-r--r--include/libhttpc.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/include/libhttpc.h b/include/libhttpc.h
index bb0f35b..08d4b80 100644
--- a/include/libhttpc.h
+++ b/include/libhttpc.h
@@ -168,12 +168,14 @@ struct LibHTTPC_Request
  */
 struct LibHTTPC_Response
 {
-    char          *buf;                       /**< Pointer to char *response */
-    const char    *version, *status, *phrase; /**< Response line */
-    const char   **header_names;              /**< \ Header parallel array */
-    const char   **header_values;             /**< / Header parallel array */
-    const char    *body;                      /**< Pointer to body */
-    size_t         header_count;              /**< Length of header array */
+    char                   *buf;                        /**< Pointer to char *response */
+    const char             *version;                    /**< HTTP version */
+    enum LibHTTPC_Status    status;                     /**< Status code */
+    const char             *phrase;                     /**< Phrase describing status code */
+    const char            **header_names;               /**< \ Header parallel array */
+    const char            **header_values;              /**< / Header parallel array */
+    const char             *body;                       /**< Pointer to body */
+    size_t                  header_count;               /**< Length of header array */
 };
 
 /**