diff options
Diffstat (limited to 'http.h')
-rw-r--r-- | http.h | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -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 */ |