Commit | Line | Data |
---|---|---|
d422fdfd FT |
1 | #ifndef _LIB_HTRESP_H |
2 | #define _LIB_HTRESP_H | |
3 | ||
b008ba9e | 4 | #include "req.h" |
46e66302 | 5 | |
3095582d | 6 | char *urlquote(char *text); |
121d8be9 | 7 | char *htmlquote(char *text); |
d422fdfd | 8 | void simpleerror(int fd, int code, char *msg, char *fmt, ...); |
65e8a9a0 | 9 | void simpleerror2(FILE *out, int code, char *msg, char *fmt, ...); |
46e66302 | 10 | void stdredir(struct hthead *req, int fd, int code, char *dst); |
b4164ce6 FT |
11 | char *fmthttpdate(time_t time); |
12 | time_t parsehttpdate(char *date); | |
62e76c42 | 13 | char *httpdefstatus(int code); |
d422fdfd FT |
14 | |
15 | #endif |