summaryrefslogtreecommitdiff
path: root/http.h
diff options
context:
space:
mode:
authorVincent Douillet <vincent@vdouillet.fr>2024-01-23 09:22:00 +0100
committerVincent Douillet <vincent@vdouillet.fr>2024-02-08 09:27:54 +0100
commit42f538cc66546997a166dbe67e489c9afabbb908 (patch)
tree718bb6b7161892c4b964499c1818c6d7bf0bd6a6 /http.h
parent760031b4a74d70bdeaab4ce9aedfe772acd05bd3 (diff)
download files
Diffstat (limited to 'http.h')
-rw-r--r--http.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/http.h b/http.h
index 64ce472..1112f74 100644
--- a/http.h
+++ b/http.h
@@ -33,11 +33,21 @@
#include <kcgi.h>
+#include "file.h"
+
+/*
+ * Initialize headers and start the document body with the provided http code.
+ * All parameters are required.
+ */
+void
+http_open_file(struct kreq *, enum khttp, struct file *);
+
/*
* Initialize headers and start the document body with the provided http code.
* All parameters are required.
*/
-void http_open(struct kreq * r, enum khttp code, enum kmime mime);
+void
+http_open(struct kreq *, enum khttp, enum kmime);
/*
* Send a plain text error response.
@@ -48,6 +58,7 @@ void http_open(struct kreq * r, enum khttp code, enum kmime mime);
*
* This function exits with EXIT_FAILURE. It never returns.
*/
-void http_exit(struct kreq *, enum khttp, char *,...);
+void
+http_exit(struct kreq *, enum khttp, char *,...);
#endif /* HTTP_H */