summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-05-13 20:44:07 +0200
committerVincent Douillet <vincent@vdouillet.fr>2024-05-13 22:01:09 +0200
commit10eb77f9323110c55f88195c5b8207eb524baa73 (patch)
tree940c83fc095bad3e63045bc6fbe9ada8e4276135 /http.h
parent0effd40bad7ae753102e7040159afd76be4e8732 (diff)
add unit tests
Diffstat (limited to 'http.h')
-rw-r--r--http.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/http.h b/http.h
index 1112f74..5f09c88 100644
--- a/http.h
+++ b/http.h
@@ -36,6 +36,14 @@
#include "file.h"
/*
+ * Return structure for HTTP action methods
+ */
+struct http_ret {
+ enum khttp code;
+ char *message;
+};
+
+/*
* Initialize headers and start the document body with the provided http code.
* All parameters are required.
*/