X-Git-Url: http://www.dolda2000.com/gitweb/?a=blobdiff_plain;f=lib%2Fresp.h;h=6262244a80a23f15d858c9b11213a885f3a04c85;hb=7d1e14f405f389656604c68e18a381feabcd3d4a;hp=8f18f87d366df37b64c5c2ccbc798fcb14b97cae;hpb=3095582d21be4087f774f5a68a2a9abfa37dd1ff;p=ashd.git diff --git a/lib/resp.h b/lib/resp.h index 8f18f87..6262244 100644 --- a/lib/resp.h +++ b/lib/resp.h @@ -1,13 +1,15 @@ #ifndef _LIB_HTRESP_H #define _LIB_HTRESP_H -#include +#include "req.h" char *urlquote(char *text); char *htmlquote(char *text); void simpleerror(int fd, int code, char *msg, char *fmt, ...); +void simpleerror2(FILE *out, int code, char *msg, char *fmt, ...); void stdredir(struct hthead *req, int fd, int code, char *dst); char *fmthttpdate(time_t time); time_t parsehttpdate(char *date); +char *httpdefstatus(int code); #endif